diff options
Diffstat (limited to 'lib/lua/src/llex.c')
-rw-r--r-- | lib/lua/src/llex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lua/src/llex.c b/lib/lua/src/llex.c index ff88f92..c06ea9f 100644 --- a/lib/lua/src/llex.c +++ b/lib/lua/src/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.5 2004-11-27 21:46:07 pixel Exp $ +** $Id: llex.c,v 1.6 2004-12-19 16:14:04 pixel Exp $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -185,6 +185,8 @@ static void read_numeral (LexState *LS, int comma, SemInfo *seminfo) { hex = 1; checkbuffer(LS, 1); save_and_next(LS, l); + } else if (LS->current == '.') { + oct = hex = 0; } } while (isdigit(LS->current) || (hex && isxdigit(LS->current))) { |