[Libreoffice-commits] core.git: tools/qa

David Tardon dtardon at redhat.com
Fri Oct 17 14:06:01 PDT 2014


 tools/qa/cppunit/test_bigint.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a43ba14c532f7abb5cef243065d64a1283cf94de
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Oct 17 23:05:16 2014 +0200

    correct cast
    
    Change-Id: Ic79ce25bf4ceb4d715aabdabf3824304b02b1f38

diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx
index 9832a23..3e2654b 100644
--- a/tools/qa/cppunit/test_bigint.cxx
+++ b/tools/qa/cppunit/test_bigint.cxx
@@ -87,7 +87,7 @@ void BigIntTest::testConstructionFromLongLong()
 
     // positive number not fitting to long
     {
-        BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max() + 1));
+        BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max()) + 1);
         CPPUNIT_ASSERT(bi.IsSet());
         CPPUNIT_ASSERT(!bi.IsZero());
         CPPUNIT_ASSERT(!bi.IsNeg());
@@ -96,7 +96,7 @@ void BigIntTest::testConstructionFromLongLong()
 
     // negative number not fitting to long
     {
-        BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::min() - 1));
+        BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::min()) - 1);
         CPPUNIT_ASSERT(bi.IsSet());
         CPPUNIT_ASSERT(!bi.IsZero());
         CPPUNIT_ASSERT(bi.IsNeg());


More information about the Libreoffice-commits mailing list