From f534b7005d80f6d984b8d68dc2bc557504b1d575 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 23 Nov 2017 20:55:21 +0100 Subject: util.format: Import unpack from table lib in Lua 5.2+ --- util/format.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/format.lua') diff --git a/util/format.lua b/util/format.lua index 99705d03..c5e513fa 100644 --- a/util/format.lua +++ b/util/format.lua @@ -4,7 +4,7 @@ local tostring = tostring; local select = select; -local unpack = unpack; +local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack local type = type; local function format(formatstring, ...) -- cgit v1.2.3