1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-06 09:01:13 +02: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

@ -1,3 +1,8 @@
2002-04-25 Peter Stephenson <pws@csr.com>
* 17046: Src/math.c: OCTAL_ZEROES with a `0' on its own was
swallowing up too many characters.
2002-04-25 Clint Adams <clint@zsh.org>
* 17044: Completion/Unix/Command/_w3m: complete all files, not

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: