[Libreoffice-commits] core.git: tools/qa
David Tardon
dtardon at redhat.com
Fri Oct 17 05:44:52 PDT 2014
tools/qa/cppunit/test_bigint.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit c738c9fb2c4eb8e0f9e5eb5d37e5ac88504f4954
Author: David Tardon <dtardon at redhat.com>
Date: Fri Oct 17 14:44:05 2014 +0200
fix comparison
Change-Id: Ia7f65d69c186056527a2beb72a18f4a66e4c6586
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx
index ac75cca..6ec74a4 100644
--- a/tools/qa/cppunit/test_bigint.cxx
+++ b/tools/qa/cppunit/test_bigint.cxx
@@ -52,7 +52,7 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(!bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(42L, bi);
+ CPPUNIT_ASSERT_EQUAL(42L, static_cast<long>(bi));
}
// small negative number
@@ -62,7 +62,7 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(-42L, bi);
+ CPPUNIT_ASSERT_EQUAL(-42L, static_cast<long>(bi));
}
// positive number just fitting to long
@@ -72,7 +72,7 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(!bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::max(), bi);
+ CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::max(), static_cast<long>(bi));
}
// negative number just fitting to long
@@ -82,7 +82,7 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::min(), bi);
+ CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::min(), static_cast<long>(bi));
}
// positive number not fitting to long
More information about the Libreoffice-commits
mailing list