From: Trent Mick Date: Sat, 12 Aug 2000 21:37:39 +0000 (+0000) Subject: Clean up a warning on Win64. The downcast of the strlen size_t X-Git-Tag: v2.0b1~487 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a248fb605f34d287533f873d79ff66494fcfd514;p=python 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 4bed0dc29d..8182ae2ad8 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -153,7 +153,7 @@ PyFloat_FromString(PyObject *v, char **pend) NULL)) return NULL; s = s_buffer; - len = strlen(s); + len = (int)strlen(s); } else if (PyObject_AsCharBuffer(v, &s, &len)) { PyErr_SetString(PyExc_TypeError,