diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-24 06:06:11 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-24 06:06:11 (GMT) |
commit | bab05c96049ddcfabfdf314d60835cc4e245d400 (patch) | |
tree | d6b1942ea44c617dedc7e327cc78144924acf28e /Objects/cobject.c | |
parent | 68f2d000e9666487afd0198681c14cc3fdc9742a (diff) | |
download | cpython-bab05c96049ddcfabfdf314d60835cc4e245d400.zip cpython-bab05c96049ddcfabfdf314d60835cc4e245d400.tar.gz cpython-bab05c96049ddcfabfdf314d60835cc4e245d400.tar.bz2 |
Fix SF #1412837, compile failed with Watcom compiler
Diffstat (limited to 'Objects/cobject.c')
-rw-r--r-- | Objects/cobject.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/cobject.c b/Objects/cobject.c index 5a6be43..f764a1d 100644 --- a/Objects/cobject.c +++ b/Objects/cobject.c @@ -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; } |