aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/big_int.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/big_int.cpp b/src/big_int.cpp
index a24b2f28d..1db9eafa7 100644
--- a/src/big_int.cpp
+++ b/src/big_int.cpp
@@ -532,7 +532,7 @@ void big_int_add(BigInt *dst, BigInt const *x, BigInt const *y) {
overflow += 1;
} else {
// IMPORTANT TODO(bill): Is this mathematics correct here?
- v += prev_overflow;
+ v += overflow;
}
dst->d.words[i] = v;
i += 1;