summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-05-05 20:05:35 (GMT)
committerGuido van Rossum <guido@python.org>1991-05-05 20:05:35 (GMT)
commite3a204fe47b3a923201c4d7f6dff17e6097ddf52 (patch)
tree04f4d4d9b0f93967e03f3e47cbdbd612697bc2a0 /Python
parentfaf9c960a2bd8fe452a4fc8b84c91c6d60799133 (diff)
downloadcpython-e3a204fe47b3a923201c4d7f6dff17e6097ddf52.zip
cpython-e3a204fe47b3a923201c4d7f6dff17e6097ddf52.tar.gz
cpython-e3a204fe47b3a923201c4d7f6dff17e6097ddf52.tar.bz2
Added long integer support.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 59cdc0c..5e6a18e 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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') {