From 690374d4dec42365fd28cd6f9f1361697fdd7b9f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 10 Jul 2021 23:07:42 +0100 Subject: Fix typo --- src/big_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/big_int.cpp') 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]; -- cgit v1.2.3