From de3933480e729577355b18c086d2e3c341c17aa6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 27 Dec 2014 18:31:43 -0200 Subject: [PATCH] details --- lparser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lparser.c b/lparser.c index 7c652aa2..d65e8884 100644 --- 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; }