]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added long integer support.
authorGuido van Rossum <guido@python.org>
Sun, 5 May 1991 20:05:35 +0000 (20:05 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 5 May 1991 20:05:35 +0000 (20:05 +0000)
Python/compile.c

index 59cdc0c13878e6fb55b27375531bb92537b8fa15..5e6a18edafe4f5876935f3f39beada232901f104 100644 (file)
@@ -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') {