diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2008-12-18 17:08:57 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2008-12-18 17:08:57 (GMT) |
commit | baa4546b02e776d60e3f5d8261ff88f03550b230 (patch) | |
tree | 027f908d6856f20cddcc1a4430c626f2ef3fd20a /Objects | |
parent | 3ad3a0d366e48798f17dc3db4377fc9659d52d05 (diff) | |
download | cpython-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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 4 |
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; |