diff options
-rw-r--r-- | tools/qa/cppunit/test_bigint.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx index ac75cca2a9e5..6ec74a40cf5f 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 |