Fix stack growth for coroutine.wrap().

This commit is contained in:
Mike Pall 2010-09-22 21:16:16 +02:00
parent d270e890f1
commit 5baf0f9dc2

View File

@ -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;
} }