Added long integer support.

This commit is contained in:
Guido van Rossum 1991-05-05 20:05:35 +00:00
parent faf9c960a2
commit e3a204fe47
1 changed files with 4 additions and 0 deletions

View 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') {