[Python-checkins] python/dist/src/Include object.h,2.128,2.129

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Sep 1 09:02:45 CEST 2004


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13289/Include

Modified Files:
	object.h 
Log Message:
SF patch #1020188:  Use Py_CLEAR where necessary to avoid crashes
(Contributed by Dima Dorfman)



Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.128
retrieving revision 2.129
diff -u -d -r2.128 -r2.129
--- object.h	22 Jul 2004 01:46:43 -0000	2.128
+++ object.h	1 Sep 2004 07:02:42 -0000	2.129
@@ -623,7 +623,7 @@
 #define Py_CLEAR(op)				\
         do {                            	\
                 if (op) {			\
-                        PyObject *tmp = (op);	\
+                        PyObject *tmp = (PyObject *)(op);	\
                         (op) = NULL;		\
                         Py_DECREF(tmp);		\
                 }				\



More information about the Python-checkins mailing list