From 49915b4a09cc89ccd426b29f7113b380828361d3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 5 Apr 2008 00:54:42 +0100 Subject: [PATCH] ec: Fix oncurvep. The previous version didn't take into account the fact that we had internal-format points. --- ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.11.0