aboutsummaryrefslogtreecommitdiff
path: root/src/lua/thread/luaopen_Thread.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-12 21:52:15 +0800
committerchai <chaifix@163.com>2018-08-12 21:52:15 +0800
commit02298dd5b704e9a87b907e1e7df27decccfd0620 (patch)
treec55b3b82940e044e3c748dd9107956b61b02d95d /src/lua/thread/luaopen_Thread.cpp
parent7b34bd98bb00796febd5351b9d2e75fd2c247432 (diff)
*update
Diffstat (limited to 'src/lua/thread/luaopen_Thread.cpp')
-rw-r--r--src/lua/thread/luaopen_Thread.cpp6
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);