Skip to content

Commit 8a72734

Browse files
real-or-randomhebasto
authored andcommitted
Help the compiler prove that a loop is entered
1 parent fd491ea commit 8a72734

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ecmult_gen_compute_table_impl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, cons
2222
secp256k1_gej nums_gej;
2323
int i, j;
2424

25+
VERIFY_CHECK(g > 0);
26+
VERIFY_CHECK(n > 0);
27+
2528
/* get the generator */
2629
secp256k1_gej_set_ge(&gj, gen);
2730

0 commit comments

Comments
 (0)