aboutsummaryrefslogtreecommitdiff
path: root/src/big_int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/big_int.cpp')
-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 f361009d2..9e57b3fc2 100644
--- a/src/big_int.cpp
+++ b/src/big_int.cpp
@@ -430,7 +430,7 @@ int big_int_cmp(BigInt const *x, BigInt const *y) {
u64 const *xd = big_int_ptr(x);
u64 const *yd = big_int_ptr(y);
- for (i32 i = x->len; i >= 0; i--) {
+ for (i32 i = x->len-1; i >= 0; i--) {
u64 a = xd[i];
u64 b = yd[i];