aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorJ08nY2017-04-05 00:18:01 +0200
committerJ08nY2017-04-05 00:23:33 +0200
commitf87dd8a285755f9b1d838b3efdfd952fae81ee55 (patch)
tree07916d786c9c68e8020e4ee969b328d19eebbc0f /src/math
parentb77fd8c4eb3f1dba399d8451909fefc52b436c35 (diff)
downloadecgen-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.c2
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);