1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

17046: Src/math.c: OCTAL_ZEROES with a `0' on its own was

swallowing up too many characters.
This commit is contained in:
Peter Stephenson 2002-04-25 15:45:42 +00:00
parent 9dd13ac83f
commit f08fd02935
2 changed files with 8 additions and 2 deletions

View file

@ -383,9 +383,10 @@ zzlex(void)
return NUM;
}
else if (isset(OCTALZEROES) &&
(memchr(ptr, '.', strlen(ptr)) == NULL)) {
(memchr(ptr, '.', strlen(ptr)) == NULL) &&
idigit(*ptr)) {
yyval.u.l = zstrtol(ptr, &ptr, lastbase = 8);
return NUM;
return NUM;
}
/* Fall through! */
default: