scaddins/source/analysis/analysis.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8c7266b084fe95460c1e8b5e27bb4464ca1cc20a
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Wed Jan 6 01:24:41 2021 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Jan 7 10:31:53 2021 +0100

    Resolves: tdf#139173 One-off error in limits for DEC2HEX()
    
    BIN2HEX() and OCT2HEX() were not affected because the string input
    is already limited to 10 characters and the converted decimal
    can't even reach the limits.
    
    Change-Id: Iba4212e8fc382287a1a454edf91426ba21497ae2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108824
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins
    (cherry picked from commit 70ea6b36df9ede18b135876d9b9da9945f6c129b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108897
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/scaddins/source/analysis/analysis.cxx 
b/scaddins/source/analysis/analysis.cxx
index 2669a00c2633..150a989787a1 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -701,7 +701,7 @@ const double    SCA_MAX2        = 511.0;            // min. 
val for binary numbe
 const double    SCA_MIN2        = -SCA_MAX2-1.0;    // min. val for binary 
numbers (9 bits + sign)
 const double    SCA_MAX8        = 536870911.0;      // max. val for octal 
numbers (29 bits + sign)
 const double    SCA_MIN8        = -SCA_MAX8-1.0;    // min. val for octal 
numbers (29 bits + sign)
-const double    SCA_MAX16       = 549755813888.0;   // max. val for 
hexadecimal numbers (39 bits + sign)
+const double    SCA_MAX16       = 549755813887.0;   // max. val for 
hexadecimal numbers (39 bits + sign)
 const double    SCA_MIN16       = -SCA_MAX16-1.0;   // min. val for 
hexadecimal numbers (39 bits + sign)
 const sal_Int32 SCA_MAXPLACES   = 10;               // max. number of places
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to