diff options
author | Trent Mick <trentm@activestate.com> | 2000-08-12 21:37:39 (GMT) |
---|---|---|
committer | Trent Mick <trentm@activestate.com> | 2000-08-12 21:37:39 (GMT) |
commit | a248fb605f34d287533f873d79ff66494fcfd514 (patch) | |
tree | 465c25da853d926e800f81bc10560e7f23edf672 /Objects/floatobject.c | |
parent | 29b83810bde8dfcf72e45405e884aa0953e23d0f (diff) | |
download | cpython-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/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 2 |
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, |