another blind attempt to fix the test
Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a
This commit is contained in:
parent
a43ba14c53
commit
18bb0ac9ee
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue