]> granicus.if.org Git - python/commitdiff
Clean up a couple of warnings on Win64. The downcast of the strlen size_t
authorTrent Mick <trentm@activestate.com>
Sat, 12 Aug 2000 21:35:36 +0000 (21:35 +0000)
committerTrent Mick <trentm@activestate.com>
Sat, 12 Aug 2000 21:35:36 +0000 (21:35 +0000)
return value to int is safe here because in each case it previouls checked that
there will be no overflow.

Python/bltinmodule.c

index 6c2c3c70c9cba5db021ced6dbc4751ded751ff80..b9222b612590d8829b7d0e27392030e99a7ce28c 100644 (file)
@@ -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,