projects/aports·blob master · refs

31 lines · 816 B

1From f28d838c92de332764882055035dac72c3a143bf Mon Sep 17 00:00:00 2001
2From: Natanael Copa <[email protected]>
3Date: Mon, 6 Apr 2015 20:11:35 +0000
4Subject: [PATCH] Issue #7: fix for Lua 5.3
5
6---
7 ml.lua | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
9
10diff --git a/ml.lua b/ml.lua
11index 6915195..3dbec40 100644
12--- a/ml.lua
13+++ b/ml.lua
14@@ -8,6 +8,8 @@ local ml = {}
15 local select,pairs = select,pairs
16 local function_arg
17
18+table.unpack = table.unpack or unpack
19+
20 ---------------------------------------------------
21 -- String utilties.
22 -- @section string
23@@ -585,7 +587,7 @@ function ml.import(t,...)
24 libs[i] = lib
25 end
26 end
27- return ml.update(t,unpack(libs))
28+ return ml.update(t,table.unpack(libs))
29 end
30
31 --- add the key/value pairs of arrays to the first array.