~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ec.c: Accept field elements in the fast path from `samep' fields.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index
9535240
..
444af3b
100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-467,7
+467,7
@@
static PyObject *epget__z(PyObject *me, void *hunoz)
static mp *coord_in(field *f, PyObject *x)
{
mp *xx;
- if (FE_PYCHECK(x) &&
FE_F(x) == f
)
+ if (FE_PYCHECK(x) &&
(FE_F(x) == f || field_samep(FE_F(x), f))
)
return (MP_COPY(FE_X(x)));
else if ((xx = getmp(x)) == 0)
return (0);