summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2008-12-18 17:08:57 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2008-12-18 17:08:57 (GMT)
commitbaa4546b02e776d60e3f5d8261ff88f03550b230 (patch)
tree027f908d6856f20cddcc1a4430c626f2ef3fd20a
parent3ad3a0d366e48798f17dc3db4377fc9659d52d05 (diff)
downloadcpython-baa4546b02e776d60e3f5d8261ff88f03550b230.zip
cpython-baa4546b02e776d60e3f5d8261ff88f03550b230.tar.gz
cpython-baa4546b02e776d60e3f5d8261ff88f03550b230.tar.bz2
Add missing Py_CHARMASK when calling isspace().
Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling.
-rw-r--r--Objects/floatobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 89eac64..20c1eef 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;