diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-24 06:08:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-24 06:08:23 (GMT) |
commit | a3b5e99d8d105db0f9b7103900ef501049475e46 (patch) | |
tree | 4d877fad38f11b434f1f12e6706a50c83211128a | |
parent | 29beb16ab2c4143d03f6de56e13ce4858c673d6a (diff) | |
download | cpython-a3b5e99d8d105db0f9b7103900ef501049475e46.zip cpython-a3b5e99d8d105db0f9b7103900ef501049475e46.tar.gz cpython-a3b5e99d8d105db0f9b7103900ef501049475e46.tar.bz2 |
Fix SF #1412837, compile failed with Watcom compiler
-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; } |