summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-10 17:00:37 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-10 17:00:37 (GMT)
commit9fa2c116139a22d647fc736cf36dfd815c6de944 (patch)
treee4db1c79b8e5adf691f1d418e9a074ff2c906cd7 /Objects/longobject.c
parent2497eada60349dc5f2eb8314f2128069374a35a2 (diff)
downloadcpython-9fa2c116139a22d647fc736cf36dfd815c6de944.zip
cpython-9fa2c116139a22d647fc736cf36dfd815c6de944.tar.gz
cpython-9fa2c116139a22d647fc736cf36dfd815c6de944.tar.bz2
use Py_CHARMASK; and don't check for neg. float to the float power here
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index b9935b0..9c2dcf8 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -377,7 +377,7 @@ long_escan(str, pend, base)
err_setstr(ValueError, "invalid base for long literal");
return NULL;
}
- while (*str != '\0' && isspace(*str))
+ while (*str != '\0' && isspace(Py_CHARMASK(*str)))
str++;
if (*str == '+')
++str;
@@ -385,7 +385,7 @@ long_escan(str, pend, base)
++str;
sign = -1;
}
- while (*str != '\0' && isspace(*str))
+ while (*str != '\0' && isspace(Py_CHARMASK(*str)))
str++;
if (base == 0) {
if (str[0] != '0')