From 431c22024d8af440ca4b79ce951896f3bcd0d7cc Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 8 Dec 2012 19:50:20 +0000 Subject: users/17445: fix handling of leading zeroes in floating point --- Src/math.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/math.c') 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') { -- cgit 1.4.1