commit | a248fb605f34d287533f873d79ff66494fcfd514 | [log] [tgz] |
---|---|---|
author | Trent Mick <trentm@activestate.com> | Sat Aug 12 21:37:39 2000 +0000 |
committer | Trent Mick <trentm@activestate.com> | Sat Aug 12 21:37:39 2000 +0000 |
tree | 465c25da853d926e800f81bc10560e7f23edf672 | |
parent | 29b83810bde8dfcf72e45405e884aa0953e23d0f [diff] [blame] |
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.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 4bed0dc..8182ae2 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c
@@ -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,