diff options
| author | ruki <[email protected]> | 2020-01-30 22:49:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-01-30 10:56:07 +0800 |
| commit | 4e2bb608354145ac86d85b418e9a2319eaed189e (patch) | |
| tree | e7d616156f007309c10f05297783e4de89c64c8c /core | |
| parent | 4cb343a145c152bd3ac3da8704337905408699dc (diff) | |
fix compile errors
Diffstat (limited to 'core')
| -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); |
