Commit e3a204fe authored by Guido van Rossum's avatar Guido van Rossum

Added long integer support.

parent faf9c960
...@@ -364,6 +364,10 @@ parsenumber(s) ...@@ -364,6 +364,10 @@ parsenumber(s)
} }
return newintobject(x); return newintobject(x);
} }
if (*end == 'l' || *end == 'L') {
extern object *long_scan();
return long_scan(s, 0);
}
errno = 0; errno = 0;
xx = strtod(s, &end); xx = strtod(s, &end);
if (*end == '\0') { if (*end == '\0') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment