From b8b1b5129ddcc0154e701dbac023f19ae1a3bf8c Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 23 Jan 2016 21:01:42 +0800 Subject: reimpl template --- xmake/core/base/utils.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmake/core/base/utils.lua') diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index 596826ed9..1ee861922 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -219,8 +219,9 @@ function utils.unique(array) table.insert(unique, v) end else - if not exists["\"" .. v .. "\""] then - exists["\"" .. v .. "\""] = true + local key = "\"" .. tostring(v) .. "\"" + if not exists[key] then + exists[key] = true table.insert(unique, v) end end -- cgit v1.3.1