mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 03:39:53 +03:00
31 lines
816 B
Diff
31 lines
816 B
Diff
From f28d838c92de332764882055035dac72c3a143bf Mon Sep 17 00:00:00 2001
|
|
From: Natanael Copa <ncopa@alpinelinux.org>
|
|
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.
|