From 1af0820871a06217312fcee22b68e15954fc553a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 9 Oct 2021 23:58:21 +0800 Subject: fix some errors for lua5.4 --- xmake/core/base/bytes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/core/base/bytes.lua') diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index 9f7b6ca4f..bb65d0cfc 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -28,6 +28,7 @@ local os = require("base/os") local utils = require("base/utils") local todisplay = require("base/todisplay") local libc = require("base/libc") +local table = require("base/table") -- new a bytes instance -- @@ -42,7 +43,7 @@ local libc = require("base/libc") -- function _instance.new(...) local args = {...} - local arg1, arg2, arg3 = unpack(args) + local arg1, arg2, arg3 = table.unpack(args) local instance = table.inherit(_instance) if type(arg1) == "number" then local size = arg1 -- cgit v1.3.1