forked from amazingfate/loongoffice
correct cast
Change-Id: Ic79ce25bf4ceb4d715aabdabf3824304b02b1f38
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user