From a3b5e99d8d105db0f9b7103900ef501049475e46 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 24 Jan 2006 06:08:23 +0000 Subject: Fix SF #1412837, compile failed with Watcom compiler --- Objects/cobject.c | 10 +++++----- 1 file 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; } -- cgit v0.12