Fix stack growth for coroutine.wrap().
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user