diff options
| author | J08nY | 2017-04-09 01:23:39 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-09 01:23:39 +0200 |
| commit | 2c9a14b7323749af884279a564dabd710e089dcc (patch) | |
| tree | b0120d374ebea45dec8ee782df41464b0c6e8504 /src | |
| parent | 95232a66de8f62098cb230e924b27049c89a9c4a (diff) | |
| download | ecgen-2c9a14b7323749af884279a564dabd710e089dcc.tar.gz ecgen-2c9a14b7323749af884279a564dabd710e089dcc.tar.zst ecgen-2c9a14b7323749af884279a564dabd710e089dcc.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/math/point.c | 5 | ||||
| -rw-r--r-- | src/math/point.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/math/point.c b/src/math/point.c index fb2235e..409bc48 100644 --- a/src/math/point.c +++ b/src/math/point.c @@ -14,9 +14,10 @@ point_t *point_new(void) { return point; } -point_t *point_copy(point_t *src, point_t *dest) { +point_t *point_copy(const point_t *src, point_t *dest) { if (src->point) dest->point = gcopy(src->point); - if (dest->point) dest->order = gcopy(src->order); + if (src->order) dest->order = gcopy(src->order); + if (src->cofactor) dest->cofactor = gcopy(src->cofactor); return dest; } diff --git a/src/math/point.h b/src/math/point.h index 4ced232..4ebea31 100644 --- a/src/math/point.h +++ b/src/math/point.h @@ -23,7 +23,7 @@ point_t *point_new(void); * @param dest * @return */ -point_t *point_copy(point_t *src, point_t *dest); +point_t *point_copy(const point_t *src, point_t *dest); /** * |
