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

tim.peters python-checkins at python.org
Tue May 30 07:05:00 CEST 2006


Author: tim.peters
Date: Tue May 30 07:04:59 2006
New Revision: 46548

Modified:
   python/trunk/Objects/dictobject.c
Log:
dict_print():  Explicitly narrow the return value
from a (possibly) wider variable.


Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c	(original)
+++ python/trunk/Objects/dictobject.c	Tue May 30 07:04:59 2006
@@ -767,7 +767,7 @@
 	i = Py_ReprEnter((PyObject*)mp);
 	if (i != 0) {
 		if (i < 0)
-			return i;
+			return (int)i;
 		fprintf(fp, "{...}");
 		return 0;
 	}


More information about the Python-checkins mailing list