Kaydet (Commit) 18bb0ac9 authored tarafından David Tardon's avatar David Tardon

another blind attempt to fix the test

Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a
üst a43ba14c
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment