aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 3ceb15e7..181e4284 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.187 2002/06/06 13:52:37 roberto Exp roberto $ 2** $Id: lparser.c,v 1.188 2002/06/06 17:29:53 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -927,7 +927,7 @@ static void whilestat (LexState *ls, int line) {
927 fs->jpc = NO_JUMP; 927 fs->jpc = NO_JUMP;
928 sizeexp = fs->pc - expinit; /* size of expression code */ 928 sizeexp = fs->pc - expinit; /* size of expression code */
929 if (sizeexp > MAXEXPWHILE) 929 if (sizeexp > MAXEXPWHILE)
930 luaX_syntaxerror(ls, "while condition too complex"); 930 luaX_syntaxerror(ls, "`while' condition too complex");
931 for (i = 0; i < sizeexp; i++) /* save `exp' code */ 931 for (i = 0; i < sizeexp; i++) /* save `exp' code */
932 codeexp[i] = fs->f->code[expinit + i]; 932 codeexp[i] = fs->f->code[expinit + i];
933 fs->pc = expinit; /* remove `exp' code */ 933 fs->pc = expinit; /* remove `exp' code */