summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-10 09:38:01 +0800
committerruki <[email protected]>2021-10-10 09:38:01 +0800
commitfbcae436aa6cb62ce0fbd317d5ff95ddc744328b (patch)
tree9f2c59dc0bf869c6c321fe2ce809ebc55a89f666 /core
parent998fe56110752f9ae8e4c298aec0aef174077a2b (diff)
fix compile error
Diffstat (limited to 'core')
-rw-r--r--core/src/xmake/os/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/args.c b/core/src/xmake/os/args.c
index 4f1c89f7f..c6de9e6c6 100644
--- a/core/src/xmake/os/args.c
+++ b/core/src/xmake/os/args.c
@@ -108,7 +108,7 @@ tb_int_t xm_os_args(lua_State* lua)
if (lua_istable(lua, 1))
{
tb_size_t i = 0;
- tb_size_t n = lua_objlen(lua, 1);
+ tb_size_t n = (tb_size_t)lua_objlen(lua, 1);
for (i = 1; i <= n; i++)
{
// add space