diff options
Diffstat (limited to 'test/helpers.lua')
-rw-r--r-- | test/helpers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua index 83e78ba059..10f2f80191 100644 --- a/test/helpers.lua +++ b/test/helpers.lua @@ -376,8 +376,8 @@ local function format_string(fmt, ...) return args[i] end local ret = fmt:gsub('%%[0-9*]*%.?[0-9*]*[cdEefgGiouXxqsr%%]', function(match) - local subfmt = match:gsub('%*', function(match) - return getarg() + local subfmt = match:gsub('%*', function() + return tostring(getarg()) end) local arg = nil if subfmt:sub(-1) ~= '%' then |