diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2002-04-25 15:45:42 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-04-25 15:45:42 +0000 |
| commit | f08fd029357e2b16e5e9a9332a3e67b0af6a76e2 (patch) | |
| tree | c9e53ca9843bd213ba5d79094aeccfb7b229fe27 /Src/math.c | |
| parent | users/4865: Completion/compinit: need to add NO_octalzeroes to (diff) | |
| download | zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar.gz zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar.bz2 zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar.lz zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar.xz zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.tar.zst zsh-f08fd029357e2b16e5e9a9332a3e67b0af6a76e2.zip | |
17046: Src/math.c: OCTAL_ZEROES with a `0' on its own was
swallowing up too many characters.
Diffstat (limited to 'Src/math.c')
| -rw-r--r-- | Src/math.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/math.c b/Src/math.c index 17796f244..e87a286fb 100644 --- a/Src/math.c +++ b/Src/math.c @@ -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: |
