[Python-checkins] r46549 - python/trunk/Objects/dictobject.c

tim.peters python-checkins at python.org
Tue May 30 07:23:59 CEST 2006


Author: tim.peters
Date: Tue May 30 07:23:59 2006
New Revision: 46549

Modified:
   python/trunk/Objects/dictobject.c
Log:
dict_print():  So that Neal & I don't spend the rest of
our lives taking turns rewriting code that works ;-),
get rid of casting illusions by declaring a new variable
with the obvious type.


Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c	(original)
+++ python/trunk/Objects/dictobject.c	Tue May 30 07:23:59 2006
@@ -763,11 +763,12 @@
 {
 	register Py_ssize_t i;
 	register Py_ssize_t any;
+	int status;
 
-	i = Py_ReprEnter((PyObject*)mp);
-	if (i != 0) {
-		if (i < 0)
-			return (int)i;
+	status = Py_ReprEnter((PyObject*)mp);
+	if (status != 0) {
+		if (status < 0)
+			return status;
 		fprintf(fp, "{...}");
 		return 0;
 	}


More information about the Python-checkins mailing list