Skip to content

Commit be2df91

Browse files
Use CHECK only in the tests
1 parent af0b3e6 commit be2df91

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ecmult_impl.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,11 @@ static int secp256k1_ecmult_wnaf(int *wnaf, int len, const secp256k1_scalar *a,
417417

418418
bit += now;
419419
}
420-
#ifdef VERIFY
421-
CHECK(carry == 0);
420+
VERIFY_CHECK(carry == 0);
422421
while (bit < 256) {
423-
CHECK(secp256k1_scalar_get_bits(&s, bit++, 1) == 0);
422+
VERIFY_CHECK(secp256k1_scalar_get_bits(&s, bit, 1) == 0);
423+
bit++;
424424
}
425-
#endif
426425
return last_set_bit + 1;
427426
}
428427

0 commit comments

Comments
 (0)