From bcb0d8e7eb53865f627cadd79eb181de34e86f5a Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Jun 2015 13:53:44 +0800 Subject: uses table.insert --- xmake/scripts/platform/platform.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/scripts/platform/platform.lua') diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua index e968137fd..01728106b 100644 --- a/xmake/scripts/platform/platform.lua +++ b/xmake/scripts/platform/platform.lua @@ -195,7 +195,7 @@ function platform.archs(plat) local p = platform._load(plat) if p and p._ARCHS then for _, arch in ipairs(p._ARCHS) do - archs[table.getn(archs) + 1] = arch + table.insert(archs, arch) end end @@ -245,11 +245,11 @@ function platform.menu(action) local name = option[2] if name then if not exist[name] then - menus[table.getn(menus) + 1] = option + table.insert(menus, option) exist[name] = true end else - menus[table.getn(menus) + 1] = option + table.insert(menus, option) end end end -- cgit v1.3.1