aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index 63404c3d..09891b61 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.37 1999/07/22 19:29:42 roberto Exp roberto $ 2** $Id: llex.c,v 1.38 1999/08/16 20:52:00 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -402,8 +402,7 @@ int luaX_lex (LexState *LS) {
402 save_and_next(LS); 402 save_and_next(LS);
403 } 403 }
404 save('\0'); 404 save('\0');
405 LS->seminfo.r = luaO_str2d(L->Mbuffer+L->Mbuffbase); 405 if (!luaO_str2d(L->Mbuffer+L->Mbuffbase, &LS->seminfo.r))
406 if (LS->seminfo.r < 0)
407 luaX_error(LS, "invalid numeric format"); 406 luaX_error(LS, "invalid numeric format");
408 return NUMBER; 407 return NUMBER;
409 408