From 18bb0ac9eeb8bda4fab93c2ee0e23d6d3ac2bcac Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 17 Oct 2014 23:25:04 +0200 Subject: [PATCH] another blind attempt to fix the test Change-Id: I7ac53b340cf3a9f72a90414e09ddd37148ecd28a --- tools/qa/cppunit/test_bigint.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx index 3e2654b1adf6..87ebed67bd1d 100644 --- a/tools/qa/cppunit/test_bigint.cxx +++ b/tools/qa/cppunit/test_bigint.cxx @@ -87,7 +87,7 @@ void BigIntTest::testConstructionFromLongLong() // positive number not fitting to long { - BigInt bi(static_cast(std::numeric_limits::max()) + 1); + BigInt bi(static_cast(std::numeric_limits::max()) + static_cast(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(std::numeric_limits::min()) - 1); + BigInt bi(static_cast(std::numeric_limits::min()) - static_cast(1)); CPPUNIT_ASSERT(bi.IsSet()); CPPUNIT_ASSERT(!bi.IsZero()); CPPUNIT_ASSERT(bi.IsNeg());