Loosen integral limits on packing.lua

This commit is contained in:
Miguel Oliveira 2023-07-18 21:12:00 -03:00
parent 3da91cf3a2
commit 0604359dbb

View file

@ -95,7 +95,7 @@ if not string.pack or pcall(string.dump, string.pack) then
local w = {} local w = {}
for i in fmt:gmatch("I([%d]+)") do for i in fmt:gmatch("I([%d]+)") do
local n = tonumber(i) or 4 local n = tonumber(i) or 4
assert(n > 0 and n <= 4, "integral size out of limits") assert(n > 0 and n <= 16, "integral size out of limits")
w[#w + 1] = n w[#w + 1] = n
end end
return fn(w, e == ">") return fn(w, e == ">")