dlog test code fixes for 32-bit

This commit is contained in:
Fredrik Johansson 2016-09-14 14:49:09 +02:00 committed by Pascal
parent b4c6206d98
commit f7e88db0be
2 changed files with 5 additions and 1 deletions

View file

@ -73,6 +73,10 @@ int main()
}
dlog_modpe_clear(modpe);
/* multiplication can overflow on 32-bit */
if ((double) pe * p > LIM)
break;
}
}

View file

@ -51,7 +51,7 @@ int main()
fflush(stdout);
flint_randinit(state);
for (bits = 10; bits <= 35; bits += 5)
for (bits = 10; bits <= FLINT_MIN(35, FLINT_BITS); bits += 5)
{
for (nv = 10; nv <= 10000; nv *= 10)