From b22b9862618e39aba129b7b22082d1e4bc53bf45 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 6 Apr 2015 20:16:46 +0000 Subject: main/lua-microlight: fix lua 5.3 --- main/lua-microlight/fix-lua-5.3.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 main/lua-microlight/fix-lua-5.3.patch (limited to 'main/lua-microlight/fix-lua-5.3.patch') diff --git a/main/lua-microlight/fix-lua-5.3.patch b/main/lua-microlight/fix-lua-5.3.patch new file mode 100644 index 0000000000..8ec4203f1d --- /dev/null +++ b/main/lua-microlight/fix-lua-5.3.patch @@ -0,0 +1,31 @@ +From f28d838c92de332764882055035dac72c3a143bf Mon Sep 17 00:00:00 2001 +From: Natanael Copa +Date: Mon, 6 Apr 2015 20:11:35 +0000 +Subject: [PATCH] Issue #7: fix for Lua 5.3 + +--- + ml.lua | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/ml.lua b/ml.lua +index 6915195..3dbec40 100644 +--- a/ml.lua ++++ b/ml.lua +@@ -8,6 +8,8 @@ local ml = {} + local select,pairs = select,pairs + local function_arg + ++table.unpack = table.unpack or unpack ++ + --------------------------------------------------- + -- String utilties. + -- @section string +@@ -585,7 +587,7 @@ function ml.import(t,...) + libs[i] = lib + end + end +- return ml.update(t,unpack(libs)) ++ return ml.update(t,table.unpack(libs)) + end + + --- add the key/value pairs of arrays to the first array. -- cgit v1.2.3