diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-27 18:31:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-27 18:31:43 -0200 |
commit | de3933480e729577355b18c086d2e3c341c17aa6 (patch) | |
tree | ec3308ceb3209b758cd572c040941f9466a41233 /lparser.c | |
parent | 50e2eb89541bf006525e1b060454203a644368d8 (diff) | |
download | lua-de3933480e729577355b18c086d2e3c341c17aa6.tar.gz lua-de3933480e729577355b18c086d2e3c341c17aa6.tar.bz2 lua-de3933480e729577355b18c086d2e3c341c17aa6.zip |
details
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.145 2014/11/02 19:19:04 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.146 2014/11/27 18:41:43 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 | */ |
@@ -47,8 +47,8 @@ | |||
47 | */ | 47 | */ |
48 | typedef struct BlockCnt { | 48 | typedef struct BlockCnt { |
49 | struct BlockCnt *previous; /* chain */ | 49 | struct BlockCnt *previous; /* chain */ |
50 | short firstlabel; /* index of first label in this block */ | 50 | int firstlabel; /* index of first label in this block */ |
51 | short firstgoto; /* index of first pending goto in this block */ | 51 | int firstgoto; /* index of first pending goto in this block */ |
52 | lu_byte nactvar; /* # active locals outside the block */ | 52 | lu_byte nactvar; /* # active locals outside the block */ |
53 | lu_byte upval; /* true if some variable in the block is an upvalue */ | 53 | lu_byte upval; /* true if some variable in the block is an upvalue */ |
54 | lu_byte isloop; /* true if 'block' is a loop */ | 54 | lu_byte isloop; /* true if 'block' is a loop */ |
@@ -386,7 +386,7 @@ static int newlabelentry (LexState *ls, Labellist *l, TString *name, | |||
386 | l->arr[n].line = line; | 386 | l->arr[n].line = line; |
387 | l->arr[n].nactvar = ls->fs->nactvar; | 387 | l->arr[n].nactvar = ls->fs->nactvar; |
388 | l->arr[n].pc = pc; | 388 | l->arr[n].pc = pc; |
389 | l->n++; | 389 | l->n = n + 1; |
390 | return n; | 390 | return n; |
391 | } | 391 | } |
392 | 392 | ||