From baa4546b02e776d60e3f5d8261ff88f03550b230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Thu, 18 Dec 2008 17:08:57 +0000 Subject: [PATCH] Add missing Py_CHARMASK when calling isspace(). Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling. --- Objects/floatobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 89eac6466d1..20c1eef0146 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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;