diff Objects/floatobject.c @ 13944:648ba4044455 legacy-trunk

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.
author Trent Mick <trentm@activestate.com>
date Sat, 12 Aug 2000 21:37:39 +0000
parents 59f8cedcf049
children 5ada9fa54801
line wrap: on
line diff
--- a/Objects/floatobject.c	Sat Aug 12 21:35:36 2000 +0000
+++ b/Objects/floatobject.c	Sat Aug 12 21:37:39 2000 +0000
@@ -153,7 +153,7 @@
 					    NULL))
 			return NULL;
 		s = s_buffer;
-		len = strlen(s);
+		len = (int)strlen(s);
 	}
 	else if (PyObject_AsCharBuffer(v, &s, &len)) {
 		PyErr_SetString(PyExc_TypeError,