summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-21 20:57:23 +0800
committerruki <[email protected]>2016-03-21 20:57:37 +0800
commitb898400a3a5f18d332ce7ef159769d8f17fd28e5 (patch)
tree275f124aa7c17c6090d25fefb226b0678f6d231d /xmake/core/base/table.lua
parentf0623bf26279430deb6799b7816fb61996120166 (diff)
add project option
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index c99985dab..7427f3a53 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -87,7 +87,7 @@ function table.copy(copied)
-- copy it
local result = {}
- for k, v in pairs(copied) do
+ for k, v in pairs(table.wrap(copied)) do
result[k] = v
end
@@ -108,7 +108,7 @@ function table.copy2(self, copied)
table.clear(self)
-- copy it
- for k, v in pairs(copied) do
+ for k, v in pairs(table.wrap(copied)) do
self[k] = v
end