diff options
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/io/poller_insert.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/io/poller_modify.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/io/poller_remove.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/io/poller_insert.c b/core/src/xmake/io/poller_insert.c index 9043ed463..8de62ce3a 100644 --- a/core/src/xmake/io/poller_insert.c +++ b/core/src/xmake/io/poller_insert.c @@ -50,7 +50,7 @@ tb_int_t xm_io_poller_insert(lua_State* lua) } // get otype - tb_size_t otype = (tb_size_t)luaL_checknumber(lua, 1); + tb_uint8_t otype = (tb_uint8_t)luaL_checknumber(lua, 1); // get cdata tb_pointer_t cdata = (tb_pointer_t)lua_touserdata(lua, 2); diff --git a/core/src/xmake/io/poller_modify.c b/core/src/xmake/io/poller_modify.c index 63a172bc6..49473bf8b 100644 --- a/core/src/xmake/io/poller_modify.c +++ b/core/src/xmake/io/poller_modify.c @@ -50,7 +50,7 @@ tb_int_t xm_io_poller_modify(lua_State* lua) } // get otype - tb_size_t otype = (tb_size_t)luaL_checknumber(lua, 1); + tb_uint8_t otype = (tb_uint8_t)luaL_checknumber(lua, 1); // get cdata tb_pointer_t cdata = (tb_pointer_t)lua_touserdata(lua, 2); diff --git a/core/src/xmake/io/poller_remove.c b/core/src/xmake/io/poller_remove.c index cd5848a17..848ab50f9 100644 --- a/core/src/xmake/io/poller_remove.c +++ b/core/src/xmake/io/poller_remove.c @@ -50,7 +50,7 @@ tb_int_t xm_io_poller_remove(lua_State* lua) } // get otype - tb_size_t otype = (tb_size_t)luaL_checknumber(lua, 1); + tb_uint8_t otype = (tb_uint8_t)luaL_checknumber(lua, 1); // get cdata tb_pointer_t cdata = (tb_pointer_t)lua_touserdata(lua, 2); |
