diff options
author | David Tardon <dtardon@redhat.com> | 2014-10-17 23:05:16 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-10-17 23:05:16 +0200 |
commit | a43ba14c532f7abb5cef243065d64a1283cf94de (patch) | |
tree | f64f7ac80df23a38f376dd5288fe482ef3d18d8b /tools | |
parent | 5cdede38ff285ff241760e853e04ffd8035a3467 (diff) |
correct cast
Change-Id: Ic79ce25bf4ceb4d715aabdabf3824304b02b1f38
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qa/cppunit/test_bigint.cxx | 4 |
1 files 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<sal_Int64>(std::numeric_limits<long>::max() + 1)); + BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::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<sal_Int64>(std::numeric_limits<long>::min() - 1)); + BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::min()) - 1); CPPUNIT_ASSERT(bi.IsSet()); CPPUNIT_ASSERT(!bi.IsZero()); CPPUNIT_ASSERT(bi.IsNeg()); |