Fix external C call stack check when using LUAJIT_MODE_WRAPCFUNC.

Thanks to Peter Cawley. #1047
This commit is contained in:
Mike Pall 2023-08-28 21:04:01 +02:00
parent 309fb42b87
commit 14e2917e7a

View File

@ -292,9 +292,9 @@ int luaJIT_setmode(lua_State *L, int idx, int mode)
} else {
return 0; /* Failed. */
}
g->bc_cfunc_ext = BCINS_AD(BC_FUNCCW, 0, 0);
setbc_op(&g->bc_cfunc_ext, BC_FUNCCW);
} else {
g->bc_cfunc_ext = BCINS_AD(BC_FUNCC, 0, 0);
setbc_op(&g->bc_cfunc_ext, BC_FUNCC);
}
break;
default: