diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/math/order.c | 3 | ||||
| -rw-r--r-- | src/math/point.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/math/order.c b/src/math/order.c index 3235a30..037a7f7 100644 --- a/src/math/order.c +++ b/src/math/order.c @@ -29,9 +29,10 @@ int order_sea(curve_t *curve, const config_t *cfg, arg_t *args) { int order_smallfact(curve_t *curve, const config_t *cfg, arg_t *args) { if (!args) { - fprintf(stderr, "No args to an arged function. order_smallfact"); + fprintf(stderr, "No args to an arged function. order_smallfact\n"); return INT_MIN; } + pari_ulong smallfact = *(pari_ulong *)args->args; pari_sp ltop = avma; GEN fact = mpfact(smallfact); diff --git a/src/math/point.c b/src/math/point.c index 8b3dcef..5233b6d 100644 --- a/src/math/point.c +++ b/src/math/point.c @@ -118,7 +118,7 @@ int point_random(curve_t *curve, const config_t *cfg, arg_t *args) { int points_random(curve_t *curve, const config_t *cfg, arg_t *args) { if (!args) { - fprintf(stderr, "No args to an arged function. points_random"); + fprintf(stderr, "No args to an arged function. points_random\n"); return INT_MIN; } @@ -154,7 +154,7 @@ int points_random(curve_t *curve, const config_t *cfg, arg_t *args) { int points_trial(curve_t *curve, const config_t *cfg, arg_t *args) { // TODO stack code!!! if (!args) { - fprintf(stderr, "No args to an arged function. points_trial"); + fprintf(stderr, "No args to an arged function. points_trial\n"); return INT_MIN; } |
