aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index b3062072..a5e94507 100644
--- a/lapi.c
+++ b/lapi.c
@@ -655,7 +655,7 @@ LUA_API int lua_pushthread (lua_State *L) {
655 setthvalue(L, s2v(L->top.p), L); 655 setthvalue(L, s2v(L->top.p), L);
656 api_incr_top(L); 656 api_incr_top(L);
657 lua_unlock(L); 657 lua_unlock(L);
658 return (G(L)->mainthread == L); 658 return (mainthread(G(L)) == L);
659} 659}
660 660
661 661