algorithms.c: Use `RETURN_ME' rather than doing the job by hand.
[catacomb-python] / ec.c
diff --git a/ec.c b/ec.c
index 95b59ef..f5a3aca 100644 (file)
--- a/ec.c
+++ b/ec.c
@@ -986,7 +986,7 @@ static PyObject *ecmeth_parse(PyObject *me, PyObject *arg)
   if (!PyArg_ParseTuple(arg, "s:parse", &p)) goto end;
   qd.p = p; qd.e = 0;
   if ((c = ec_curveparse(&qd)) == 0) VALERR(qd.e);
-  rc = eccurve_pywrap(0, c);
+  rc = Py_BuildValue("(Ns)", eccurve_pywrap(0, c), qd.p);
 end:
   return (rc);
 }