Skip to content

Commit bab05c9

Browse files
committed
Fix SF #1412837, compile failed with Watcom compiler
1 parent 68f2d00 commit bab05c9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Objects/cobject.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ PyCObject_Import(char *module_name, char *name)
100100
}
101101

102102
int
103-
PyCObject_SetVoidPtr(PyObject *_self, void *cobj)
103+
PyCObject_SetVoidPtr(PyObject *self, void *cobj)
104104
{
105-
PyCObject* self = (PyCObject*)_self;
106-
if (self == NULL || !PyCObject_Check(self) ||
107-
self->destructor != NULL) {
105+
PyCObject* cself = (PyCObject*)self;
106+
if (cself == NULL || !PyCObject_Check(cself) ||
107+
cself->destructor != NULL) {
108108
PyErr_SetString(PyExc_TypeError,
109109
"Invalid call to PyCObject_SetVoidPtr");
110110
return 0;
111111
}
112-
self->cobject = cobj;
112+
cself->cobject = cobj;
113113
return 1;
114114
}
115115

0 commit comments

Comments
 (0)