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

David Tardon dtardon at redhat.com
Fri Oct 17 14:29:02 PDT 2014


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

New commits:
commit 18bb0ac9eeb8bda4fab93c2ee0e23d6d3ac2bcac
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Oct 17 23:25:04 2014 +0200

    another blind attempt to fix the test
    
    Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a

diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx
index 3e2654b..87ebed6 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()) + static_cast<sal_Int64>(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()) - static_cast<sal_Int64>(1));
         CPPUNIT_ASSERT(bi.IsSet());
         CPPUNIT_ASSERT(!bi.IsZero());
         CPPUNIT_ASSERT(bi.IsNeg());


More information about the Libreoffice-commits mailing list