diff options
| author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2008-12-18 17:08:57 +0000 |
|---|---|---|
| committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2008-12-18 17:08:57 +0000 |
| commit | 8fd424166fc2d15d977245fdedf16f5052109d14 (patch) | |
| tree | 3e03f25bd7740828fe9606cc258ee53ce024769c /Objects/floatobject.c | |
| parent | a784f1da0d2129ddd74e7f36808f7cf92774c586 (diff) | |
| download | cpython-8fd424166fc2d15d977245fdedf16f5052109d14.tar.gz | |
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/floatobject.c')
| -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 89eac6466d..20c1eef014 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; |
