From f745a00a5d268c334a3953e31e1bf3647dee84f7 Mon Sep 17 00:00:00 2001 From: QRMOE Date: Tue, 13 Oct 2026 07:46:49 +0200 Subject: [PATCH] fix(libc): accept the full llroundl integer range --- core/libs/prx/libc/src/Math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/libs/prx/libc/src/Math.cpp b/core/libs/prx/libc/src/Math.cpp index fdef084ea..07da1655a 100644 --- a/core/libs/prx/libc/src/Math.cpp +++ b/core/libs/prx/libc/src/Math.cpp @@ -18,7 +18,7 @@ namespace { template std::int64_t RoundToInt64(TFloat value) { const TFloat rounded = std::round(value); - if (!(rounded >= static_cast(INT64_MIN) && rounded < static_cast(INT64_MAX))) { + if (!(rounded >= static_cast(INT64_MIN) && rounded < -static_cast(INT64_MIN))) { std::feraiseexcept(FE_INVALID); return INT64_MIN; }