From 73ef7c49044868d00bba7ccc9cb1ec92548015fb Mon Sep 17 00:00:00 2001 From: powerof3 Date: Mon, 31 Aug 2026 00:12:43 +0530 Subject: [PATCH] fix: out of range error when reading `int64` values --- include/REX/STRING.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/REX/STRING.h b/include/REX/STRING.h index 260579f..8995681 100644 --- a/include/REX/STRING.h +++ b/include/REX/STRING.h @@ -163,7 +163,7 @@ namespace REX::STR } else if constexpr (std::is_same_v) { return static_cast(std::stof(a_str, nullptr)); } else if constexpr (std::is_same_v) { - return static_cast(std::stol(a_str, nullptr, base)); + return static_cast(std::stoll(a_str, nullptr, base)); } else if constexpr (std::is_same_v) { return static_cast(std::stoull(a_str, nullptr, base)); } else if constexpr (std::is_signed_v) {