chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ec: Fix oncurvep.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index 67bbeefffec6bcceb74a5d8ac822739adf4cbdec..f31670e3a2f904a6dfab36feba9788d9f3355f1d 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-233,7
+233,8
@@
end:
static PyObject *epmeth_oncurvep(PyObject *me, PyObject *arg)
{
if (!PyArg_ParseTuple(arg, ":oncurvep")) return (0);
static PyObject *epmeth_oncurvep(PyObject *me, PyObject *arg)
{
if (!PyArg_ParseTuple(arg, ":oncurvep")) return (0);
- return (getbool(!ec_check(ECPT_C(me), ECPT_P(me))));
+ return (getbool(EC_ATINF(ECPT_P(me)) ||
+ !EC_CHECK(ECPT_C(me), ECPT_P(me))));
}
static PyObject *epmeth_dbl(PyObject *me, PyObject *arg)
}
static PyObject *epmeth_dbl(PyObject *me, PyObject *arg)