sal/rtl/math.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit c8a0b1269f9c5effa8ab368fb7f03fb9e48fd0d3
Author: Mike Kaganski <[email protected]>
AuthorDate: Thu Sep 18 12:20:26 2025 +0500
Commit: Miklos Vajna <[email protected]>
CommitDate: Thu Sep 25 08:47:25 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 <[email protected]>
(cherry picked from commit 898c7ca764566c986317ce4d5086c3e171868a44)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191297
Reviewed-by: Miklos Vajna <[email protected]>
Tested-by: Jenkins CollaboraOffice <[email protected]>
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 39887de94a47..596e5ad7a086 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;