Skip to content

Commit

Permalink
Fix 1weso test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica authored Jun 11, 2020
1 parent 1d7e7c2 commit f8fcc78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ class OneWesolowskiCallback: public WesolowskiCallback {
OneWesolowskiCallback(integer& D, uint64_t wanted_iter) : WesolowskiCallback(D) {
uint32_t k, l;
this->wanted_iter = wanted_iter;
ApproximateParameters(wanted_iter, k, l);
if (wanted_iter >= (1 << 16) {
ApproximateParameters(wanted_iter, k, l);
} else {
k = 10;
l = 1;
}
kl = k * l;
uint64_t space_needed = wanted_iter / (k * l) + 100;
forms = (form*) calloc(space_needed, sizeof(form));
Expand Down

0 comments on commit f8fcc78

Please sign in to comment.