diff options
Diffstat (limited to 'xmake/core/base/table.lua')
| -rw-r--r-- | xmake/core/base/table.lua | 4 |
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 |
