forgot to protect refnanny macro arguments in last commit
authorLisandro Dalcin <dalcinl@gmail.com>
Tue, 3 Feb 2009 19:06:24 +0000 (17:06 -0200)
committerLisandro Dalcin <dalcinl@gmail.com>
Tue, 3 Feb 2009 19:06:24 +0000 (17:06 -0200)
Cython/Compiler/ModuleNode.py

index b68c1d0ae60649c9bb83b224a4a75d6d67c6fcbf..5445d92fa6baa06814b760b2587d708f0449ca3f 100644 (file)
@@ -2341,13 +2341,13 @@ typedef struct {
   void* (*NewContext)(const char*, int);
   int (*FinishContext)(void**);
 } __Pyx_RefnannyAPIStruct;
-static __Pyx_RefnannyAPIStruct__Pyx_Refnanny = NULL;
+static __Pyx_RefnannyAPIStruct *__Pyx_Refnanny = NULL;
 #define __Pyx_ImportRefcountAPI(name) \
-  (__Pyx_RefnannyAPIStruct*) PyCObject_Import((char *)name, (char *)\"RefnannyAPI\")
-#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, ((PyObject*)r), __LINE__)
-#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, ((PyObject*)r), __LINE__)
-#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, ((PyObject*)r), __LINE__)
-#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, ((PyObject*)r), __LINE__)
+  (__Pyx_RefnannyAPIStruct *) PyCObject_Import((char *)name, (char *)\"RefnannyAPI\")
+#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, (PyObject *)(r), __LINE__)
+#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, (PyObject *)(r), __LINE__)
+#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, (PyObject *)(r), __LINE__)
+#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, (PyObject *)(r), __LINE__)
 #define __Pyx_XDECREF(r) if((r) == NULL) ; else __Pyx_DECREF(r)
 #define __Pyx_SetupRefcountContext(name) \
   void* __pyx_refchk = __Pyx_Refnanny->NewContext((name), __LINE__)