Changeset

7185:5687788a2e4d

util.multitable: Localize unpack() in Lua 5.2 compatible way
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 17:40:42 +0100
parents 7184:dedc6bf180e2
children 7186:9c3930bcbb72
files util/multitable.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/multitable.lua	Mon Feb 22 17:38:46 2016 +0100
+++ b/util/multitable.lua	Mon Feb 22 17:40:42 2016 +0100
@@ -8,7 +8,8 @@
 
 local select = select;
 local t_insert = table.insert;
-local unpack, pairs, next, type = unpack, pairs, next, type;
+local pairs, next, type = pairs, next, type;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
 
 local _ENV = nil;