1
0
mirror of https://github.com/lua/lua.git synced 2025-01-28 06:03:00 +08:00
This commit is contained in:
Roberto Ierusalimschy 2014-12-27 18:31:43 -02:00
parent 50e2eb8954
commit de3933480e

View File

@ -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;
}