summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-10-17 14:44:05 +0200
committerDavid Tardon <dtardon@redhat.com>2014-10-17 14:44:20 +0200
commitc738c9fb2c4eb8e0f9e5eb5d37e5ac88504f4954 (patch)
treef2445eef57c642bfad32406cb25675f6a7fc19da /tools
parentafcd04f74bbd0225f5a14ba54907cdbef5666ce7 (diff)
fix comparison
Change-Id: Ia7f65d69c186056527a2beb72a18f4a66e4c6586
Diffstat (limited to 'tools')
-rw-r--r--tools/qa/cppunit/test_bigint.cxx8
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