buffer.c: Handle curve object as `PyObject *'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Oct 2019 10:27:49 +0000 (11:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
I've not checked, but I think this is the only place where a
pre- existing curve object was handled as `PyTypeObject *'.

buffer.c

index 245ce8f..f615858 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -184,7 +184,7 @@ end:
 
 static PyObject *rbmeth_getecptraw(PyObject *me, PyObject *arg)
 {
-  PyTypeObject *cobj;
+  PyObject *cobj;
   ec pt = EC_INIT;
   if (!PyArg_ParseTuple(arg, "O!:getecptraw", eccurve_pytype, &cobj))
     goto end;