From f87dd8a285755f9b1d838b3efdfd952fae81ee55 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 5 Apr 2017 00:18:01 +0200 Subject: Add exhaustive_gen_retry, fix infinite loop, add retry limit to exhaustive gen --- src/math/order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math') diff --git a/src/math/order.c b/src/math/order.c index e7abf56..1bcbb3e 100644 --- a/src/math/order.c +++ b/src/math/order.c @@ -17,7 +17,7 @@ int order_smallfact(curve_t *curve, config_t *cfg, arg_t *args) { pari_ulong smallfact = *(pari_ulong *)args->args; pari_sp ltop = avma; GEN fact = mpfact(smallfact); - if (lgefint(fact) > 3) { + if (lgefint(fact) > 3) { smallfact = 0; } else { smallfact = itou(fact); -- cgit v1.3.1