Skip to content

Commit 51e6901

Browse files
committed
get rid of double
1 parent bcdecee commit 51e6901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prover_slow.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ form GenerateWesolowski(form &y, form &x_init,
5151
for (uint64_t i = 0; i < (1UL << k); i++)
5252
ys[i] = form::identity(D);
5353

54-
for (uint64_t i = 0; i < ceil(double(num_iterations) / (k * l)); i++) {
54+
for (uint64_t i = 0; i < (num_iterations + k * l - 1) / (k * l); i++) {
5555
if (num_iterations >= k * (i * l + j + 1)) {
5656
uint64_t b = GetBlock(i*l + j, k, num_iterations, B);
5757
nucomp_form(ys[b], ys[b], intermediates[i], D, L);

0 commit comments

Comments
 (0)