summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-20 16:41:24 +0200
committerEike Rathke <erack@redhat.com>2017-10-20 16:42:13 +0200
commit82a869887b46e9fc87928cf462e2a1d020d6e9c3 (patch)
treebd405c86aef83888b8abc4e2fca60334e7c4f417 /sal
parent92bad369d99b02f1be0bfb8f79d3e85c271492bb (diff)
Comment some values that 16 doesn't work
One of them was removed with e6611cc2ef5960e9f32c56da44fafd02446f53e6, reintroduce to prevent running into a dead end again. 16 or 17 digits will need some different approach. Change-Id: Iec213ed857121e323e13ee83763c51fa563c794f
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 32121b34b2f1..64b5be8bcc78 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -373,7 +373,7 @@ inline void doubleToString(typename T::String ** pResult,
case rtl_math_StringFormat_Automatic:
{ // E or F depending on exponent magnitude
int nPrec;
- if (nExp <= -15 || nExp >= 15) // #58531# was <-16, >16
+ if (nExp <= -15 || nExp >= 15) // was <-16, >16 in ancient versions, which leads to inaccuracies
{
nPrec = 14;
eFormat = rtl_math_StringFormat_E;
@@ -525,7 +525,7 @@ inline void doubleToString(typename T::String ** pResult,
{
for (int i = 0; ; i++)
{
- if (i < 15)
+ if (i < 15) // was 16 in ancient versions, which leads to inaccuracies
{
int nDigit;
if (nDigits-1 == 0 && i > 0 && i < 14)