summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 09:53:48 +0800
committerruki <[email protected]>2021-10-10 09:53:48 +0800
commita418cf89392b8df002b4f9e4670ea9cf9a672f6e (patch)
treea05b1976d0d95db86c9561ceb4b1be5c9503b292 /core/src
parent18154145324b1ae0c9dabee8299149df8ef4ecbd (diff)
fix error
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/process/openv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c
index 46bec2cf5..493ba02ec 100644
--- a/core/src/xmake/process/openv.c
+++ b/core/src/xmake/process/openv.c
@@ -60,7 +60,7 @@ tb_int_t xm_process_openv(lua_State* lua)
tb_check_return_val(shellname, 0);
// get the arguments count
- tb_long_t argn = lua_objlen(lua, 2);
+ tb_long_t argn = (tb_long_t)lua_objlen(lua, 2);
tb_check_return_val(argn >= 0, 0);
// get arguments