Skip to content

Commit

Permalink
Help the compiler prove that a loop is entered
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random authored and hebasto committed Jun 25, 2023
1 parent fd491ea commit 8a72734
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ecmult_gen_compute_table_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage* table, cons
secp256k1_gej nums_gej;
int i, j;

VERIFY_CHECK(g > 0);
VERIFY_CHECK(n > 0);

/* get the generator */
secp256k1_gej_set_ge(&gj, gen);

Expand Down

0 comments on commit 8a72734

Please sign in to comment.