Changeset

12759:ec54fe0003d5 0.12

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
author Kim Alvefur <zash@zash.se>
date Sun, 09 Oct 2022 15:38:36 +0200
parents 12758:7929c0ffbe14
children 12760:ce1a0f9bf25a
files util/jsonschema.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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