diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2012-12-08 19:50:20 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2012-12-08 19:50:20 +0000 |
| commit | 431c22024d8af440ca4b79ce951896f3bcd0d7cc (patch) | |
| tree | b1537203e66121da529463e322dc0e4830b8a02a /Src/math.c | |
| parent | 30811: new completion for btrfs and complete btrfs and ext4 mount options (diff) | |
| download | zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar.gz zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar.bz2 zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar.lz zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar.xz zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.tar.zst zsh-431c22024d8af440ca4b79ce951896f3bcd0d7cc.zip | |
users/17445: fix handling of leading zeroes in floating point
Diffstat (limited to 'Src/math.c')
| -rw-r--r-- | Src/math.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c index abc5f994e..e90d6a59a 100644 --- a/Src/math.c +++ b/Src/math.c @@ -447,7 +447,8 @@ lexconstant(void) if (*nptr == '-') nptr++; - if (*nptr == '0') + if (*nptr == '0' && + (memchr(nptr, '.', strlen(nptr)) == NULL)) { nptr++; if (*nptr == 'x' || *nptr == 'X') { |
