mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Added long integer support.
This commit is contained in:
parent
faf9c960a2
commit
e3a204fe47
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,10 @@ parsenumber(s)
|
|||
}
|
||||
return newintobject(x);
|
||||
}
|
||||
if (*end == 'l' || *end == 'L') {
|
||||
extern object *long_scan();
|
||||
return long_scan(s, 0);
|
||||
}
|
||||
errno = 0;
|
||||
xx = strtod(s, &end);
|
||||
if (*end == '\0') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue