buffer.c: Handle curve object as `PyObject *'.
[catacomb-python] / 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;