[Libreoffice-commits] core.git: sal/rtl

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 27 09:52:03 UTC 2020


 sal/rtl/math.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b8404ae521a9c2d183d4e076a7884627ba353e4b
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Fri Nov 27 10:50:49 2020 +0100
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Fri Nov 27 10:51:29 2020 +0100

    Fix comment
    
    Change-Id: I2ae6e3cadc0f182c4798e5d33b0c7f07fbcbbff6

diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 7d46c754b433..81fa0cf925b7 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -338,7 +338,7 @@ void doubleToString(typename T::String ** pResult,
             {
                 const sal_Int32 nDec = nDecPlaces - nDig2;
                 nDecPlaces -= nDec;
-                // nDec-1 is also offset into slot, rounded(-1=0) or not(-2=1)
+                // nDec-1 is also offset into slot, rounded(1-1=0) or not(2-1=1)
                 const size_t nSlot = ((fValue < fB3) ? 4 : ((fValue < fB2) ? 3
                             : ((fValue < fB1) ? 2 : ((fValue < DBL_MAX) ? 1 : 0))));
 


More information about the Libreoffice-commits mailing list