aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldo.c b/ldo.c
index a89ac010..66217a4b 100644
--- a/ldo.c
+++ b/ldo.c
@@ -705,9 +705,10 @@ LUA_API int lua_isyieldable (lua_State *L) {
705 705
706LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, 706LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx,
707 lua_KFunction k) { 707 lua_KFunction k) {
708 CallInfo *ci = L->ci; 708 CallInfo *ci;
709 luai_userstateyield(L, nresults); 709 luai_userstateyield(L, nresults);
710 lua_lock(L); 710 lua_lock(L);
711 ci = L->ci;
711 api_checknelems(L, nresults); 712 api_checknelems(L, nresults);
712 if (unlikely(!yieldable(L))) { 713 if (unlikely(!yieldable(L))) {
713 if (L != G(L)->mainthread) 714 if (L != G(L)->mainthread)