mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
lua 5.3.2 bugfix 2/3
This commit is contained in:
@@ -1229,7 +1229,7 @@ static void labelstat (LexState *ls, TString *label, int line) {
|
|||||||
checkrepeated(fs, ll, label); /* check for repeated labels */
|
checkrepeated(fs, ll, label); /* check for repeated labels */
|
||||||
checknext(ls, TK_DBCOLON); /* skip double colon */
|
checknext(ls, TK_DBCOLON); /* skip double colon */
|
||||||
/* create new entry for this label */
|
/* create new entry for this label */
|
||||||
l = newlabelentry(ls, ll, label, line, fs->pc);
|
l = newlabelentry(ls, ll, label, line, luaK_getlabel(fs));
|
||||||
skipnoopstat(ls); /* skip other no-op statements */
|
skipnoopstat(ls); /* skip other no-op statements */
|
||||||
if (block_follow(ls, 0)) { /* label is last no-op statement in the block? */
|
if (block_follow(ls, 0)) { /* label is last no-op statement in the block? */
|
||||||
/* assume that locals are already out of scope */
|
/* assume that locals are already out of scope */
|
||||||
|
|||||||
@@ -688,6 +688,7 @@ typedef struct GMatchState {
|
|||||||
static int gmatch_aux (lua_State *L) {
|
static int gmatch_aux (lua_State *L) {
|
||||||
GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3));
|
GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3));
|
||||||
const char *src;
|
const char *src;
|
||||||
|
gm->ms.L = L;
|
||||||
for (src = gm->src; src <= gm->ms.src_end; src++) {
|
for (src = gm->src; src <= gm->ms.src_end; src++) {
|
||||||
const char *e;
|
const char *e;
|
||||||
reprepstate(&gm->ms);
|
reprepstate(&gm->ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user