SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
devel/lua-cjson/patches/patch-lua_cjson_util_lua
Normal file
13
devel/lua-cjson/patches/patch-lua_cjson_util_lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
unpack moved to table.unpack in lua5.2
|
||||
|
||||
--- lua/cjson/util.lua.orig Mon May 16 22:58:17 2016
|
||||
+++ lua/cjson/util.lua Mon May 16 23:05:46 2016
|
||||
@@ -4,6 +4,8 @@ local json = require "cjson"
|
||||
--
|
||||
-- Mark Pulford <mark@kyne.com.au>
|
||||
|
||||
+local unpack = unpack or table.unpack
|
||||
+
|
||||
-- Determine with a Lua table can be treated as an array.
|
||||
-- Explicitly returns "not an array" for very sparse arrays.
|
||||
-- Returns:
|
Loading…
Add table
Add a link
Reference in a new issue