lua 5.3.2 bugfix 2/3

This commit is contained in:
Cloud Wu
2016-03-24 16:19:06 +08:00
parent ba451c1cd2
commit 242ff32bca
2 changed files with 2 additions and 1 deletions

View File

@@ -688,6 +688,7 @@ typedef struct GMatchState {
static int gmatch_aux (lua_State *L) {
GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3));
const char *src;
gm->ms.L = L;
for (src = gm->src; src <= gm->ms.src_end; src++) {
const char *e;
reprepstate(&gm->ms);