another blind attempt to fix the test

Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a
This commit is contained in:
David Tardon 2014-10-17 23:25:04 +02:00
parent a43ba14c53
commit 18bb0ac9ee

View file

@ -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());