diff options
| author | ruki <[email protected]> | 2017-12-09 10:05:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-09 10:05:30 +0800 |
| commit | ff1bded2e07e9c4cf1f3865b40f8164da6287586 (patch) | |
| tree | d7c811030a97b25aadbcef27373066e6560c24ca /core/src/xmake | |
| parent | 2513f944a5a6d4606262369cf56c86ea186c9053 (diff) | |
update luajit 2.1 for macosx
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/machine.c | 2 | ||||
| -rw-r--r-- | core/src/xmake/os/find.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index c98bf1be1..eecf40ff2 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -273,7 +273,7 @@ static tb_bool_t xm_machine_save_arguments(xm_machine_impl_t* impl, tb_int_t arg { // table_new[table.getn(table_new) + 1] = argv[i] lua_pushstring(impl->lua, argv[i]); - lua_rawseti(impl->lua, -2, luaL_getn(impl->lua, -2) + 1); + lua_rawseti(impl->lua, -2, lua_objlen(impl->lua, -2) + 1); } // _ARGV = table_new diff --git a/core/src/xmake/os/find.c b/core/src/xmake/os/find.c index a4e590f8a..c4b035c79 100644 --- a/core/src/xmake/os/find.c +++ b/core/src/xmake/os/find.c @@ -103,7 +103,7 @@ static tb_bool_t xm_os_find_walk(tb_char_t const* path, tb_file_info_t const* in // exclude pathes tb_int_t i = 0; - tb_int_t count = luaL_getn(lua, 5); + tb_int_t count = lua_objlen(lua, 5); for (i = 0; i < count && !excluded; i++) { // get exclude |
