Update history

This commit is contained in:
Cloud Wu
2020-10-10 14:06:57 +08:00
parent 4484c1ed50
commit 299d12e1cd
2 changed files with 15 additions and 1 deletions

View File

@@ -4,7 +4,9 @@ local table = require "table"
local packbytes
local packvalue
if _VERSION == "Lua 5.3" then
local version = _VERSION:match "5.*"
if version and tonumber(version) >= 5.3 then
function packbytes(str)
return string.pack("<s4",str)
end