diff options
Diffstat (limited to 'src/lua/thread/luaopen_thread.cpp')
-rw-r--r-- | src/lua/thread/luaopen_thread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/thread/luaopen_thread.cpp b/src/lua/thread/luaopen_thread.cpp index b16a114..393a29d 100644 --- a/src/lua/thread/luaopen_thread.cpp +++ b/src/lua/thread/luaopen_thread.cpp @@ -75,17 +75,17 @@ namespace jin Thread* t = checkThread(L); int slot = luax_checkinteger(L, 2); const int vp = 3; - if (luax_isnumber(L, vp)) + if (luax_isnumberstrict(L, vp)) { float real = luax_checknumber(L, vp); t->send(slot, real); } - else if (luax_isboolean(L, vp)) + else if (luax_isbooleanstrict(L, vp)) { bool bol = luax_checkbool(L, vp); t->send(slot, bol); } - else if (luax_isstring(L, vp)) + else if (luax_isstringstrict(L, vp)) { const char* str = luax_checkstring(L, vp); t->send(slot, str); |