Commit 29b83810 authored by Trent Mick's avatar Trent Mick

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.
parent 6c116dd5
...@@ -430,7 +430,7 @@ complex_from_string(PyObject *v) ...@@ -430,7 +430,7 @@ complex_from_string(PyObject *v)
NULL)) NULL))
return NULL; return NULL;
s = s_buffer; s = s_buffer;
len = strlen(s); len = (int)strlen(s);
} }
else if (PyObject_AsCharBuffer(v, &s, &len)) { else if (PyObject_AsCharBuffer(v, &s, &len)) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment