mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 02:12:04 +00:00
big_int addition overflow rules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user