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

Eike Rathke erack at redhat.com
Tue Oct 4 18:14:04 UTC 2016


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

New commits:
commit 9db395d02a87605834c4c74f163861c5cbd14548
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Oct 4 19:48:40 2016 +0200

    isRepresentableInteger: assert(fAbsValue >= 0.0)
    
    Change-Id: Idf140b312617e2a3a739cb5571d1b29ef700315c

diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 1df123bb..789c135 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -154,6 +154,7 @@ struct UStringTraits
  */
 bool isRepresentableInteger(double fAbsValue)
 {
+    assert(fAbsValue >= 0.0);
     const sal_Int64 kMaxInt = (static_cast<sal_Int64>(1) << 53) - 1;
     if (fAbsValue <= static_cast<double>(kMaxInt))
     {


More information about the Libreoffice-commits mailing list