diff options
author | Trent Mick <trentm@activestate.com> | 2000-08-12 21:35:36 (GMT) |
---|---|---|
committer | Trent Mick <trentm@activestate.com> | 2000-08-12 21:35:36 (GMT) |
commit | 29b83810bde8dfcf72e45405e884aa0953e23d0f (patch) | |
tree | 81a3b3284028437537bb9f11377f0ea9cdd14af8 | |
parent | 6c116dd56bf0b27637a0b1e9721f86e8879b1e67 (diff) | |
download | cpython-29b83810bde8dfcf72e45405e884aa0953e23d0f.zip cpython-29b83810bde8dfcf72e45405e884aa0953e23d0f.tar.gz cpython-29b83810bde8dfcf72e45405e884aa0953e23d0f.tar.bz2 |
Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that
there will be no overflow.
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 6c2c3c7..b9222b6 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -430,7 +430,7 @@ complex_from_string(PyObject *v) NULL)) return NULL; s = s_buffer; - len = strlen(s); + len = (int)strlen(s); } else if (PyObject_AsCharBuffer(v, &s, &len)) { PyErr_SetString(PyExc_TypeError, |