diff options
author | David Tardon <dtardon@redhat.com> | 2014-10-17 23:25:04 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-10-17 23:25:04 +0200 |
commit | 18bb0ac9eeb8bda4fab93c2ee0e23d6d3ac2bcac (patch) | |
tree | a7050e35a648b78be9a33dd1e10db1fdb817a1bd /tools | |
parent | a43ba14c532f7abb5cef243065d64a1283cf94de (diff) |
another blind attempt to fix the test
Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qa/cppunit/test_bigint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx index 3e2654b1adf6..87ebed67bd1d 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()); |