aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
commit88607acc2c41c2bace172b78012d2ce9abf05766 (patch)
tree6283e23fe6acce3fb68e0abeb2410e7cdf816f90 /lparser.c
parent6de93e29321bedb4f9ebd14bdcc04b942b0aad57 (diff)
downloadlua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.gz
lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.bz2
lua-88607acc2c41c2bace172b78012d2ce9abf05766.zip
details
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 */