[Python-checkins] CVS: python/dist/src/Objects floatobject.c,2.65,2.66
Trent Mick
python-dev@python.org
Sat, 12 Aug 2000 14:37:43 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26243/Objects
Modified Files:
floatobject.c
Log Message:
Clean up a warning on Win64. The downcast of the strlen size_t
return value to int is safe here because it previously checked that
there will be no overflow.
Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.65
retrieving revision 2.66
diff -C2 -r2.65 -r2.66
*** floatobject.c 2000/07/31 15:28:04 2.65
--- floatobject.c 2000/08/12 21:37:39 2.66
***************
*** 154,158 ****
return NULL;
s = s_buffer;
! len = strlen(s);
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {
--- 154,158 ----
return NULL;
s = s_buffer;
! len = (int)strlen(s);
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {