fix: enlarge the boundary of liquid range literal to system value

This commit is contained in:
2026-09-22 20:26:28 +08:00
parent ea4b629d2c
commit 45bf57d936
+3 -2
View File
@@ -4,6 +4,7 @@ Each hack should be applied at the very start of ``main`` and
documents why it exists and when it can be dropped.
"""
import sys
import liquid.builtin.expressions.primitive as _primitive
# TODO:
@@ -21,5 +22,5 @@ def relax_liquid_range_literal_boundary() -> None:
without any error. Relax the bounds the library itself defines
to a more large boundary (as its commented)
"""
_primitive.MAX_RANGE = (2**53) - 1
_primitive.MIN_RANGE = -(2**53) + 1
_primitive.MAX_RANGE = sys.maxsize
_primitive.MIN_RANGE = -sys.maxsize