util.jsonschema: Fix Lua 5.2 integer compat 0.12
authorKim Alvefur <zash@zash.se>
Sun, 09 Oct 2022 15:38:36 +0200
branch0.12
changeset 12763 ec54fe0003d5
parent 12762 7929c0ffbe14
child 12764 ce1a0f9bf25a
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
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