[Python-checkins] r42167 - python/trunk/Objects/cobject.c
neal.norwitz
python-checkins at python.org
Tue Jan 24 07:06:11 CET 2006
Author: neal.norwitz
Date: Tue Jan 24 07:06:11 2006
New Revision: 42167
Modified:
python/trunk/Objects/cobject.c
Log:
Fix SF #1412837, compile failed with Watcom compiler
Modified: python/trunk/Objects/cobject.c
==============================================================================
--- python/trunk/Objects/cobject.c (original)
+++ python/trunk/Objects/cobject.c Tue Jan 24 07:06:11 2006
@@ -100,16 +100,16 @@
}
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;
}
More information about the Python-checkins
mailing list