Commit 9dafceb5 authored by Trent Mick's avatar Trent Mick

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.
parent 73ba51bf
......@@ -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,
......
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