mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix stack growth for coroutine.wrap().
This commit is contained in:
parent
d270e890f1
commit
5baf0f9dc2
@ -498,7 +498,7 @@ static int ffh_resume(lua_State *L, lua_State *co, int wrap)
|
|||||||
setstrV(L, L->base, lj_err_str(L, em));
|
setstrV(L, L->base, lj_err_str(L, em));
|
||||||
return FFH_RES(2);
|
return FFH_RES(2);
|
||||||
}
|
}
|
||||||
lj_state_growstack(co, (MSize)(L->top - L->base - 1));
|
lj_state_growstack(co, (MSize)(L->top - L->base));
|
||||||
return FFH_RETRY;
|
return FFH_RETRY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user