[Python-checkins] r42415 - python/trunk/Python/marshal.c

martin.v.loewis python-checkins at python.org
Thu Feb 16 15:37:49 CET 2006


Author: martin.v.loewis
Date: Thu Feb 16 15:37:48 2006
New Revision: 42415

Modified:
   python/trunk/Python/marshal.c
Log:
Move cast to suppress warning.

Modified: python/trunk/Python/marshal.c
==============================================================================
--- python/trunk/Python/marshal.c	(original)
+++ python/trunk/Python/marshal.c	Thu Feb 16 15:37:48 2006
@@ -181,9 +181,9 @@
 		else {
 			char buf[256]; /* Plenty to format any double */
 			PyFloat_AsReprString(buf, (PyFloatObject *)v);
-			n = (int)strlen(buf);
+			n = strlen(buf);
 			w_byte(TYPE_FLOAT, p);
-			w_byte(n, p);
+			w_byte((int)n, p);
 			w_string(buf, n, p);
 		}
 	}


More information about the Python-checkins mailing list