Skip to content
Snippets Groups Projects
Commit d601a769 authored by Albert Gräf's avatar Albert Gräf
Browse files

lfloat2bytes: Lua 5.3 compatibility

parent 4a522e5f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ function lfloat2bytes:initialize(name, atoms)
if (type(atoms[1]) ~= "number") then
self:error("lfloat2bytes: Digit count not a number")
elseif (atoms[1] > 0) and (atoms[1] <= 24) then
digitstr = "%0." .. atoms[1] .. "g"
digitstr = string.format("%%0.%dg", atoms[1])
else
self:error("lfloat2bytes: Digit count out of range")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment