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/compiler/compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/scripts/compiler/compiler.lua') diff --git a/xmake/scripts/compiler/compiler.lua b/xmake/scripts/compiler/compiler.lua index e1dbb9658..6bd6561af 100644 --- a/xmake/scripts/compiler/compiler.lua +++ b/xmake/scripts/compiler/compiler.lua @@ -50,7 +50,7 @@ function compiler._mapflags(self, flags) -- map it local flag_mapped = self._mapflag(configs, flag) if flag_mapped then - flags_mapped[table.getn(flags_mapped) + 1] = flag_mapped + table.insert(flags_mapped, flag_mapped) end end -- cgit v1.3.1