diff options
| author | ruki <[email protected]> | 2016-01-23 21:01:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-15 19:10:25 +0800 |
| commit | b8b1b5129ddcc0154e701dbac023f19ae1a3bf8c (patch) | |
| tree | 01049fc26145c1fed661984d33cd362bcc2923b4 /xmake/core/base/utils.lua | |
| parent | 1dc00c7159433c07412c5081388aafbe93040186 (diff) | |
reimpl template
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
