Matt McCutchen's Web Site
/
bigint
/
bigint.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Old snapshot `bigint-2006.04.24'; see the ChangeLog file.
[bigint/bigint.git]
/
BigUnsigned.cc
diff --git
a/BigUnsigned.cc
b/BigUnsigned.cc
index
a2ab58c
..
10c47db
100644
(file)
--- a/
BigUnsigned.cc
+++ b/
BigUnsigned.cc
@@
-752,8
+752,10
@@
void BigUnsigned::operator ++() {
}
if (carry) {
// Matt fixed a bug 2004.12.24: next 2 lines used to say allocateAndCopy(len + 1)
}
if (carry) {
// Matt fixed a bug 2004.12.24: next 2 lines used to say allocateAndCopy(len + 1)
+ // Matt fixed another bug 2006.04.24:
+ // old number only has len blocks, so copy before increasing length
+ allocateAndCopy(len + 1);
len++;
len++;
- allocateAndCopy(len);
blk[i] = 1;
}
}
blk[i] = 1;
}
}