diff options
| author | J08nY | 2017-04-06 23:57:00 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-06 23:57:00 +0200 |
| commit | 59b338cf8734f89c04042f217fcccf8509c3a197 (patch) | |
| tree | 700ed670f4065892d5e52e2f7db0be0720030091 /src/math/curve.c | |
| parent | fc64a68c7558fb5c508c234467aa7e77d33b163e (diff) | |
| download | ecgen-59b338cf8734f89c04042f217fcccf8509c3a197.tar.gz ecgen-59b338cf8734f89c04042f217fcccf8509c3a197.tar.zst ecgen-59b338cf8734f89c04042f217fcccf8509c3a197.zip | |
Diffstat (limited to 'src/math/curve.c')
| -rw-r--r-- | src/math/curve.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/math/curve.c b/src/math/curve.c index 812dbcc..15ce0f5 100644 --- a/src/math/curve.c +++ b/src/math/curve.c @@ -6,6 +6,7 @@ #include "exhaustive/seed.h" #include "field.h" #include "point.h" +#include "types.h" curve_t *curve_new(void) { curve_t *curve = pari_malloc(sizeof(curve_t)); @@ -68,8 +69,8 @@ int curve_any(curve_t *curve, config_t *cfg, arg_t *args) { case t_FFELT: v = gtovec0(gen_0, 5); gel(v, 1) = gen_1; - gel(v, 4) = curve->a; - gel(v, 5) = curve->b; + gel(v, 2) = curve->a; + gel(v, 4) = curve->b; break; default: pari_err_TYPE("curve_any", curve->field); |
