1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-18 12:01:00 +01:00

users/17445: fix handling of leading zeroes in floating point

This commit is contained in:
Bart Schaefer 2012-12-08 19:50:20 +00:00
parent 968a7a2a51
commit 431c22024d
3 changed files with 19 additions and 3 deletions

View file

@ -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') {