correct cast

Change-Id: Ic79ce25bf4ceb4d715aabdabf3824304b02b1f38
This commit is contained in:
David Tardon
2014-10-17 23:05:16 +02:00
parent 5cdede38ff
commit a43ba14c53

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()) + 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()) - 1);
CPPUNIT_ASSERT(bi.IsSet());
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(bi.IsNeg());