From: Trent Mick Date: Sat, 12 Aug 2000 21:35:36 +0000 (+0000) Subject: Clean up a couple of warnings on Win64. The downcast of the strlen size_t X-Git-Tag: v2.0b1~488 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29b83810bde8dfcf72e45405e884aa0953e23d0f;p=python 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. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 6c2c3c70c9..b9222b6125 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,