diff options
| author | J08nY | 2017-04-05 00:18:01 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-05 00:23:33 +0200 |
| commit | f87dd8a285755f9b1d838b3efdfd952fae81ee55 (patch) | |
| tree | 07916d786c9c68e8020e4ee969b328d19eebbc0f /src/math | |
| parent | b77fd8c4eb3f1dba399d8451909fefc52b436c35 (diff) | |
| download | ecgen-f87dd8a285755f9b1d838b3efdfd952fae81ee55.tar.gz ecgen-f87dd8a285755f9b1d838b3efdfd952fae81ee55.tar.zst ecgen-f87dd8a285755f9b1d838b3efdfd952fae81ee55.zip | |
Add exhaustive_gen_retry, fix infinite loop, add retry limit to exhaustive gen
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/order.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
