sal/rtl/math.cxx | 5 ----- 1 file changed, 5 deletions(-) New commits: commit 898c7ca764566c986317ce4d5086c3e171868a44 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Thu Sep 18 12:20:26 2025 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Sep 19 06:57:01 2025 +0200
Drop redundant out-of-range check for infinity The code already sets the status in every place where the overflow is possible, explicitly. Change-Id: Idfc878e0e8c44c285b7da9f62ec7bc170eb07a48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191143 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index bc8aa7d32b85..ea4f510499ea 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -403,11 +403,6 @@ double stringToDouble(CharT const* pBegin, CharT const* pEnd, CharT cDecSeparato } } - // overflow also if more than DBL_MAX_10_EXP digits without decimal - // separator, or 0. and more than DBL_MIN_10_EXP digits, ... - if (std::isinf(fVal)) - eStatus = rtl_math_ConversionStatus_OutOfRange; - if (bSign) fVal = -fVal;