From d601a769c7021334ad4f63e3ab6d80e1a8208c4d Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Wed, 1 Nov 2017 05:38:18 +0100 Subject: [PATCH] lfloat2bytes: Lua 5.3 compatibility --- examples/lfloat2bytes.pd_lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lfloat2bytes.pd_lua b/examples/lfloat2bytes.pd_lua index 7dc8480..22a2767 100644 --- a/examples/lfloat2bytes.pd_lua +++ b/examples/lfloat2bytes.pd_lua @@ -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 -- GitLab