diff options
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
