Skip to content

Commit

Permalink
big_int addition overflow rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Nov 11, 2019
1 parent 967981a commit 5bf71ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/big_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5bf71ba

Please sign in to comment.