diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-10 23:07:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-10 23:07:42 +0100 |
| commit | 690374d4dec42365fd28cd6f9f1361697fdd7b9f (patch) | |
| tree | c0a2c20db778ebdd4db7a96ca983ac88ef9151f8 /src/big_int.cpp | |
| parent | adb25d9d1954e80e0a9e5201505c355dbc713c82 (diff) | |
Fix typo
Diffstat (limited to 'src/big_int.cpp')
| -rw-r--r-- | src/big_int.cpp | 2 |
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]; |