Skip to content

Commit

Permalink
Fix SF #1412837, compile failed with Watcom compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
nnorwitz committed Jan 24, 2006
1 parent 68f2d00 commit bab05c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Objects/cobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bab05c9

Please sign in to comment.