diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.150 2015/12/09 15:21:28 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.151 2016/01/05 16:22:37 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 | */ |
@@ -1230,7 +1230,7 @@ static void labelstat (LexState *ls, TString *label, int line) { | |||
1230 | checkrepeated(fs, ll, label); /* check for repeated labels */ | 1230 | checkrepeated(fs, ll, label); /* check for repeated labels */ |
1231 | checknext(ls, TK_DBCOLON); /* skip double colon */ | 1231 | checknext(ls, TK_DBCOLON); /* skip double colon */ |
1232 | /* create new entry for this label */ | 1232 | /* create new entry for this label */ |
1233 | l = newlabelentry(ls, ll, label, line, fs->pc); | 1233 | l = newlabelentry(ls, ll, label, line, luaK_getlabel(fs)); |
1234 | skipnoopstat(ls); /* skip other no-op statements */ | 1234 | skipnoopstat(ls); /* skip other no-op statements */ |
1235 | if (block_follow(ls, 0)) { /* label is last no-op statement in the block? */ | 1235 | if (block_follow(ls, 0)) { /* label is last no-op statement in the block? */ |
1236 | /* assume that locals are already out of scope */ | 1236 | /* assume that locals are already out of scope */ |