[Python-checkins] r67841 - python/branches/py3k/Objects/floatobject.c
kristjan.jonsson
python-checkins at python.org
Thu Dec 18 18:08:57 CET 2008
Author: kristjan.jonsson
Date: Thu Dec 18 18:08:57 2008
New Revision: 67841
Log:
Add missing Py_CHARMASK when calling isspace().
Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling.
Modified:
python/branches/py3k/Objects/floatobject.c
Modified: python/branches/py3k/Objects/floatobject.c
==============================================================================
--- python/branches/py3k/Objects/floatobject.c (original)
+++ python/branches/py3k/Objects/floatobject.c Thu Dec 18 18:08:57 2008
@@ -1238,7 +1238,7 @@
********************/
/* leading whitespace and optional sign */
- while (isspace(*s))
+ while (isspace(Py_CHARMASK(*s)))
s++;
if (*s == '-') {
s++;
@@ -1308,7 +1308,7 @@
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;
More information about the Python-checkins
mailing list