Commit bab05c96 authored by Neal Norwitz's avatar Neal Norwitz

Fix SF #1412837, compile failed with Watcom compiler

parent 68f2d000
......@@ -100,16 +100,16 @@ PyCObject_Import(char *module_name, char *name)
}
int
PyCObject_SetVoidPtr(PyObject *_self, void *cobj)
PyCObject_SetVoidPtr(PyObject *self, void *cobj)
{
PyCObject* self = (PyCObject*)_self;
if (self == NULL || !PyCObject_Check(self) ||
self->destructor != NULL) {
PyCObject* cself = (PyCObject*)self;
if (cself == NULL || !PyCObject_Check(cself) ||
cself->destructor != NULL) {
PyErr_SetString(PyExc_TypeError,
"Invalid call to PyCObject_SetVoidPtr");
return 0;
}
self->cobject = cobj;
cself->cobject = cobj;
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment