From a248fb605f34d287533f873d79ff66494fcfd514 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Sat, 12 Aug 2000 21:37:39 +0000 Subject: [PATCH] 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. --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.40.0