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:
parent
9dd13ac83f
commit
f08fd02935
2 changed files with 8 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue