lua-json/luajson-lua-5.2.patch
Petr Šabata 4375b7fdd2 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/lua-json#7e97742078dd7095cdb5157bbb74d491566cabe6
2020-10-15 18:43:54 +02:00

25 lines
1.3 KiB
Diff

diff -up luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua.lua-52 luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua
--- luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua.lua-52 2013-05-10 16:32:47.277329679 -0400
+++ luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua 2013-05-10 16:33:19.301328534 -0400
@@ -8,7 +8,7 @@ local jsonutil = require("json.util")
local assert = assert
local type = type
local next = next
-local unpack = unpack
+local unpack = table.unpack
local _ENV = nil
diff -up luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua.lua-52 luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua
--- luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua.lua-52 2013-05-10 16:31:50.764331699 -0400
+++ luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua 2013-05-10 16:32:00.788331341 -0400
@@ -8,7 +8,7 @@ local setmetatable = setmetatable
module("lunit-encoderfunc", lunit.testcase, package.seeall)
local function build_call(name, parameters)
- return json.util.buildCall(name, unpack(parameters, parameters.n))
+ return json.util.buildCall(name, table.unpack(parameters, parameters.n))
end
function test_param_counts()