mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
631a45f73b
@ -307,9 +307,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:
|
||||
|
@ -2513,9 +2513,11 @@ static void parse_for_num(LexState *ls, GCstr *varname, BCLine line)
|
||||
*/
|
||||
static int predict_next(LexState *ls, FuncState *fs, BCPos pc)
|
||||
{
|
||||
BCIns ins = fs->bcbase[pc].ins;
|
||||
BCIns ins;
|
||||
GCstr *name;
|
||||
cTValue *o;
|
||||
if (pc >= fs->bclim) return 0;
|
||||
ins = fs->bcbase[pc].ins;
|
||||
switch (bc_op(ins)) {
|
||||
case BC_MOV:
|
||||
if (bc_d(ins) >= fs->nactvar) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user