From: Mark Wooding Date: Fri, 4 Apr 2008 23:54:42 +0000 (+0100) Subject: ec: Fix oncurvep. X-Git-Tag: 1.0.1~9 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/49915b4a09cc89ccd426b29f7113b380828361d3 ec: Fix oncurvep. The previous version didn't take into account the fact that we had internal-format points. --- diff --git a/ec.c b/ec.c index 67bbeef..f31670e 100644 --- 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); - 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)