diff options
| author | ruki <[email protected]> | 2019-02-08 23:45:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-08 16:30:39 +0800 |
| commit | 9342904338fe355892decb82b8b9fc4d3273d9be (patch) | |
| tree | 5390b307c01374ea5722594dd1a0e682b45a8e4c /core/src/xmake/process | |
| parent | 04f4888bf721d9d78b0feb56c392122966a36a4e (diff) | |
update tbox
Diffstat (limited to 'core/src/xmake/process')
| -rw-r--r-- | core/src/xmake/process/open.c | 4 | ||||
| -rw-r--r-- | core/src/xmake/process/openv.c | 4 | ||||
| -rw-r--r-- | core/src/xmake/process/waitlist.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/core/src/xmake/process/open.c b/core/src/xmake/process/open.c index a7acf8b38..443f44b89 100644 --- a/core/src/xmake/process/open.c +++ b/core/src/xmake/process/open.c @@ -71,8 +71,8 @@ tb_int_t xm_process_open(lua_State* lua) } // init process - tb_process_ref_t process = tb_process_init_cmd(command, &attr); - if (process) lua_pushlightuserdata(lua, process); + tb_process_ref_t process = (tb_process_ref_t)tb_process_init_cmd(command, &attr); + if (process) lua_pushlightuserdata(lua, (tb_pointer_t)process); else lua_pushnil(lua); // ok diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 2bdda04bc..cf78ad21b 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -113,8 +113,8 @@ tb_int_t xm_process_openv(lua_State* lua) } // init process - tb_process_ref_t process = tb_process_init(shellname, argv, &attr); - if (process) lua_pushlightuserdata(lua, process); + tb_process_ref_t process = (tb_process_ref_t)tb_process_init(shellname, argv, &attr); + if (process) lua_pushlightuserdata(lua, (tb_pointer_t)process); else lua_pushnil(lua); // exit argv diff --git a/core/src/xmake/process/waitlist.c b/core/src/xmake/process/waitlist.c index d089a7b68..53e3d16bf 100644 --- a/core/src/xmake/process/waitlist.c +++ b/core/src/xmake/process/waitlist.c @@ -128,7 +128,7 @@ tb_int_t xm_process_waitlist(lua_State* lua) { // save one process info lua_newtable(lua); - lua_pushlightuserdata(lua, infolist[i].process); + lua_pushlightuserdata(lua, (tb_pointer_t)infolist[i].process); lua_rawseti(lua, -2, 1); lua_pushinteger(lua, infolist[i].index + 1); lua_rawseti(lua, -2, 2); |
