summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2020-12-01 23:22:33 +0100
committerEike Rathke <erack@redhat.com>2020-12-02 17:55:25 +0100
commitdb72eef56a99392af2579bb9a4026519e843c3bf (patch)
tree07131c7148b8e8ef38419da9af857c140a3becb9
parentPartially resolve: tdf#113286 Add https:// to URL in Crash Report (diff)
downloadcore-db72eef56a99392af2579bb9a4026519e843c3bf.tar.gz
core-db72eef56a99392af2579bb9a4026519e843c3bf.zip
Typo in rounded digit string, tdf#138360 follow-up
Change-Id: Ic436d3e9f0c93cb36c5e4377519f2aeb6b7fbd5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107034 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit d8e0b1c81ffa16be8aae2231bcd3c02e8c01cf88) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107025
-rw-r--r--sal/rtl/math.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 10417742b3a2..e6f09f18030e 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -290,7 +290,7 @@ void doubleToString(typename T::String ** pResult,
// Writing pDig up to decimals(-1,-2) then appending one digit from
// pRou xor one or two digits from pSlot[].
constexpr char pDig[] = "7976931348623157";
- constexpr char pRou[] = "8087931459623267"; // the only up-carry is 80
+ constexpr char pRou[] = "8087931359623267"; // the only up-carry is 80
static_assert(SAL_N_ELEMENTS(pDig) == SAL_N_ELEMENTS(pRou), "digit count mismatch");
constexpr sal_Int32 nDig2 = RTL_CONSTASCII_LENGTH(pRou) - 2;
sal_Int32 nCapacity = RTL_CONSTASCII_LENGTH(pRou) + 8; // + "-1.E+308"