python/dist/src/Objects floatobject.c, 2.136, 2.137

June 30, 2005
12:02 a.m.
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;
7163
Age (days ago)
7163
Last active (days ago)
0 comments
1 participants
participants (1)
-
mwh@users.sourceforge.net