mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
Add missing Py_CHARMASK when calling isspace().
Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling.
This commit is contained in:
parent
3ad3a0d366
commit
baa4546b02
1 changed files with 2 additions and 2 deletions
|
@ -1238,7 +1238,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
|
||||||
********************/
|
********************/
|
||||||
|
|
||||||
/* leading whitespace and optional sign */
|
/* leading whitespace and optional sign */
|
||||||
while (isspace(*s))
|
while (isspace(Py_CHARMASK(*s)))
|
||||||
s++;
|
s++;
|
||||||
if (*s == '-') {
|
if (*s == '-') {
|
||||||
s++;
|
s++;
|
||||||
|
@ -1308,7 +1308,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
|
||||||
exp = 0;
|
exp = 0;
|
||||||
|
|
||||||
/* optional trailing whitespace leading to the end of the string */
|
/* optional trailing whitespace leading to the end of the string */
|
||||||
while (isspace(*s))
|
while (isspace(Py_CHARMASK(*s)))
|
||||||
s++;
|
s++;
|
||||||
if (s != s_end)
|
if (s != s_end)
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue