Correct argument parsing for alp_getstatus, which is METH_VARARGS.
This commit is contained in:
parent
e16d94b77e
commit
0bd292f004
|
@ -1203,7 +1203,7 @@ alp_getstatus(alpobject *self, PyObject *args)
|
|||
long length;
|
||||
int i;
|
||||
|
||||
if (!PyArg_Parse(args, "O!", &PyList_Type, &list))
|
||||
if (!PyArg_ParseTuple(args, "O!", &PyList_Type, &list))
|
||||
return NULL;
|
||||
length = PyList_Size(list);
|
||||
PVbuffer = PyMem_NEW(long, length);
|
||||
|
|
Loading…
Reference in New Issue