[Python-checkins] python/dist/src/Objects floatobject.c, 2.136, 2.137

mwh@users.sourceforge.net mwh at users.sourceforge.net
Thu Jun 30 02:02:34 CEST 2005


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

Modified Files:
	floatobject.c 
Log Message:
Apparently some compiler gives a warning on

		float y = x;

when x is a double.  Go figure.


Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.136
retrieving revision 2.137
diff -u -d -r2.136 -r2.137
--- floatobject.c	27 May 2005 15:23:14 -0000	2.136
+++ floatobject.c	30 Jun 2005 00:02:26 -0000	2.137
@@ -1427,7 +1427,7 @@
 		return -1;
 	}
 	else {
-		float y = x;
+		float y = (float)x;
 		const char *s = (char*)&y;
 		int i, incr = 1;
 



More information about the Python-checkins mailing list