From: Mark Wooding Date: Tue, 22 Oct 2019 10:27:49 +0000 (+0100) Subject: buffer.c: Handle curve object as `PyObject *'. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/5b1ef02a94a1bd92299d247bd7d98e53272e407b buffer.c: Handle curve object as `PyObject *'. I've not checked, but I think this is the only place where a pre- existing curve object was handled as `PyTypeObject *'. --- diff --git a/buffer.c b/buffer.c index 245ce8f..f615858 100644 --- 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;