From a43ba14c532f7abb5cef243065d64a1283cf94de Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 17 Oct 2014 23:05:16 +0200 Subject: [PATCH] correct cast Change-Id: Ic79ce25bf4ceb4d715aabdabf3824304b02b1f38 --- 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 9832a23cb278..3e2654b1adf6 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()) + 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()) - 1); CPPUNIT_ASSERT(bi.IsSet()); CPPUNIT_ASSERT(!bi.IsZero()); CPPUNIT_ASSERT(bi.IsNeg());