summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTrent Mick <trentm@activestate.com>2000-08-12 21:37:39 (GMT)
committerTrent Mick <trentm@activestate.com>2000-08-12 21:37:39 (GMT)
commita248fb605f34d287533f873d79ff66494fcfd514 (patch)
tree465c25da853d926e800f81bc10560e7f23edf672 /Objects
parent29b83810bde8dfcf72e45405e884aa0953e23d0f (diff)
downloadcpython-a248fb605f34d287533f873d79ff66494fcfd514.zip
cpython-a248fb605f34d287533f873d79ff66494fcfd514.tar.gz
cpython-a248fb605f34d287533f873d79ff66494fcfd514.tar.bz2
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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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,