Skip to content

Commit 585096b

Browse files
committed
LuaJIT: Fixed validateTree() reporting 64-bit ints as invalid literal values.
1 parent 3c2647c commit 585096b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dumbParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6093,7 +6093,7 @@ do
60936093
elseif nodeType == "literal" then
60946094
local literal = node
60956095
local vType = type(literal.value)
6096-
if not (vType == "number" or vType == "string" or vType == "boolean" or vType == "nil") then
6096+
if not (vType == "number" or vType == "string" or vType == "boolean" or vType == "nil" or (jit and vType == "cdata" and tonumber(literal.value))) then
60976097
addValidationError(path, errors, "Invalid literal value type '%s'.", vType)
60986098
end
60996099

0 commit comments

Comments
 (0)