commit de3933480e729577355b18c086d2e3c341c17aa6
parent 50e2eb89541bf006525e1b060454203a644368d8
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Sat, 27 Dec 2014 18:31:18 -0200
details
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lparser.c b/lparser.c
@@ -1,5 +1,5 @@
/*
-** $Id: lparser.c,v 2.145 2014/11/02 19:19:04 roberto Exp roberto $
+** $Id: lparser.c,v 2.146 2014/11/27 18:41:43 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -47,8 +47,8 @@
*/
typedef struct BlockCnt {
struct BlockCnt *previous; /* chain */
- short firstlabel; /* index of first label in this block */
- short firstgoto; /* index of first pending goto in this block */
+ int firstlabel; /* index of first label in this block */
+ int firstgoto; /* index of first pending goto in this block */
lu_byte nactvar; /* # active locals outside the block */
lu_byte upval; /* true if some variable in the block is an upvalue */
lu_byte isloop; /* true if 'block' is a loop */
@@ -386,7 +386,7 @@ static int newlabelentry (LexState *ls, Labellist *l, TString *name,
l->arr[n].line = line;
l->arr[n].nactvar = ls->fs->nactvar;
l->arr[n].pc = pc;
- l->n++;
+ l->n = n + 1;
return n;
}