diff options
| author | ruki <[email protected]> | 2021-09-25 21:01:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-25 21:01:04 +0800 |
| commit | 50eeea59ecee08e93e2c69929d12fa6953b92855 (patch) | |
| tree | 46cdc675a4a374bb43b7944b863a853da200512f /core/src/xmake/process | |
| parent | 8970563b1478bced1c9550506f96eac0b914696a (diff) | |
fix format for lua
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 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/xmake/process/open.c b/core/src/xmake/process/open.c index c35d9e3bf..083a01070 100644 --- a/core/src/xmake/process/open.c +++ b/core/src/xmake/process/open.c @@ -178,14 +178,14 @@ tb_int_t xm_process_open(lua_State* lua) else { // error - lua_pushfstring(lua, "envs is too large(%lu > %d) for process.openv", envn, tb_arrayn(envs) - 1); + lua_pushfstring(lua, "envs is too large(%d > %d) for process.openv", (tb_int_t)envn, tb_arrayn(envs) - 1); lua_error(lua); } } else { // error - lua_pushfstring(lua, "invalid envs[%ld] type(%s) for process.openv", i, luaL_typename(lua, -1)); + lua_pushfstring(lua, "invalid envs[%d] type(%s) for process.openv", (tb_int_t)i, luaL_typename(lua, -1)); lua_error(lua); } diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 3ec887f1e..46bec2cf5 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -85,7 +85,7 @@ tb_int_t xm_process_openv(lua_State* lua) else { // error - lua_pushfstring(lua, "invalid argv[%ld] type(%s) for process.openv", argi, luaL_typename(lua, -1)); + lua_pushfstring(lua, "invalid argv[%d] type(%s) for process.openv", (tb_int_t)argi, luaL_typename(lua, -1)); lua_error(lua); } @@ -220,14 +220,14 @@ tb_int_t xm_process_openv(lua_State* lua) else { // error - lua_pushfstring(lua, "envs is too large(%lu > %d) for process.openv", envn, tb_arrayn(envs) - 1); + lua_pushfstring(lua, "envs is too large(%d > %d) for process.openv", (tb_int_t)envn, tb_arrayn(envs) - 1); lua_error(lua); } } else { // error - lua_pushfstring(lua, "invalid envs[%ld] type(%s) for process.openv", i, luaL_typename(lua, -1)); + lua_pushfstring(lua, "invalid envs[%d] type(%s) for process.openv", (tb_int_t)i, luaL_typename(lua, -1)); lua_error(lua); } |
