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:
parent
968a7a2a51
commit
431c22024d
3 changed files with 19 additions and 3 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue