mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
use Py_CHARMASK; and don't check for neg. float to the float power here
This commit is contained in:
parent
2497eada60
commit
9fa2c11613
3 changed files with 8 additions and 12 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue