From 02298dd5b704e9a87b907e1e7df27decccfd0620 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 12 Aug 2018 21:52:15 +0800 Subject: *update --- src/lua/thread/luaopen_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/thread/luaopen_thread.cpp') 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); -- cgit v1.1-26-g67d0