# HG changeset patch # User Kim Alvefur # Date 1665322716 -7200 # Node ID ec54fe0003d59aa98ac15b10c31650f95b4cc358 # Parent 7929c0ffbe14214ce82fc152344966c1f9e6c09c util.jsonschema: Fix Lua 5.2 integer compat math.type() is unavailable before Lua 5.3 so this should use the compat function added at the top diff -r 7929c0ffbe14 -r ec54fe0003d5 util/jsonschema.lua --- a/util/jsonschema.lua Sun Oct 09 15:24:30 2022 +0200 +++ b/util/jsonschema.lua Sun Oct 09 15:38:36 2022 +0200 @@ -81,7 +81,7 @@ if type(data) == "table" then for i in pairs(data) do - if not (math.type(i) == "integer") then + if not (m_type(i) == "integer") then return false end end