Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3a204f

Browse files
committed
Added long integer support.
1 parent faf9c96 commit e3a204f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/compile.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ parsenumber(s)
364364
}
365365
return newintobject(x);
366366
}
367+
if (*end == 'l' || *end == 'L') {
368+
extern object *long_scan();
369+
return long_scan(s, 0);
370+
}
367371
errno = 0;
368372
xx = strtod(s, &end);
369373
if (*end == '\0') {

0 commit comments

Comments
 (0)