diff options
| author | ruki <[email protected]> | 2021-10-10 00:01:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-10 00:01:01 +0800 |
| commit | ff96f6c08fcf72b44226626e1d04be60e92ac37c (patch) | |
| tree | 772bc2adb964e9488ea54c59da642c59710c69b4 /xmake/core/sandbox/modules/utils.lua | |
| parent | 1af0820871a06217312fcee22b68e15954fc553a (diff) | |
fix some unpack
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 528f59b9e..59b4cf628 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -75,7 +75,7 @@ function sandbox_utils.print(format, ...) { function () -- attempt to format message - local message = vformat(format, unpack(args)) + local message = vformat(format, table.unpack(args)) -- trace utils._print(message) @@ -87,7 +87,7 @@ function sandbox_utils.print(format, ...) { function (errors) -- print multi-variables with raw lua action - sandbox_utils._print(format, unpack(args)) + sandbox_utils._print(format, table.unpack(args)) end } } |
