Add missing Py_CHARMASK when calling isspace().

Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling.
parent 3ad3a0d3
......@@ -1238,7 +1238,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
********************/
/* leading whitespace and optional sign */
while (isspace(*s))
while (isspace(Py_CHARMASK(*s)))
s++;
if (*s == '-') {
s++;
......@@ -1308,7 +1308,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
exp = 0;
/* optional trailing whitespace leading to the end of the string */
while (isspace(*s))
while (isspace(Py_CHARMASK(*s)))
s++;
if (s != s_end)
goto parse_error;
......
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