summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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') {