From f05d8bc7fb807005709d43642b9822e498865912 Mon Sep 17 00:00:00 2001 From: kintrix007 Date: Tue, 11 Jun 2024 23:17:33 +0200 Subject: [PATCH] fix: Integer bounds were specified incorrectly --- src/Elm/Kernel/Json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elm/Kernel/Json.js b/src/Elm/Kernel/Json.js index 5623c1d..ccdcfda 100644 --- a/src/Elm/Kernel/Json.js +++ b/src/Elm/Kernel/Json.js @@ -46,7 +46,7 @@ var _Json_decodeInt = _Json_decodePrim(function(value) { return (typeof value !== 'number') ? _Json_expecting('an INT', value) : - (-2147483647 < value && value < 2147483647 && (value | 0) === value) + (-2147483648 <= value && value <= 2147483647 && (value | 0) === value) ? __Result_Ok(value) : (isFinite(value) && !(value % 1))