summaryrefslogtreecommitdiff
path: root/tools/qa
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-26 14:17:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-28 07:21:59 +0100
commit6436302f40252bc6619e304e2051115fee902e20 (patch)
treea32659b4fecc9fbf8fad3e379ddd8645a2a52e0b /tools/qa
parent35f16614ee7ddf518d4c01de6b1d800f5ff1ba7e (diff)
convert some more long -> tools::Long
grepping for stuff in template params this time Change-Id: Ia37bfd85480b3a72c3c465489581d56ad8dde851 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104855 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/qa')
-rw-r--r--tools/qa/cppunit/test_bigint.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx
index ed3ab3cc3b63..efea3e341235 100644
--- a/tools/qa/cppunit/test_bigint.cxx
+++ b/tools/qa/cppunit/test_bigint.cxx
@@ -59,27 +59,27 @@ void BigIntTest::testConstructionFromLongLong()
#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG
// positive number just fitting to long
{
- BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max()));
+ BigInt bi(static_cast<sal_Int64>(std::numeric_limits<tools::Long>::max()));
CPPUNIT_ASSERT(bi.IsSet());
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(!bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::max(), static_cast<long>(bi));
+ CPPUNIT_ASSERT_EQUAL(std::numeric_limits<tools::Long>::max(), static_cast<tools::Long>(bi));
}
// negative number just fitting to long
{
- BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::min()));
+ BigInt bi(static_cast<sal_Int64>(std::numeric_limits<tools::Long>::min()));
CPPUNIT_ASSERT(bi.IsSet());
CPPUNIT_ASSERT(!bi.IsZero());
CPPUNIT_ASSERT(bi.IsNeg());
CPPUNIT_ASSERT(bi.IsLong());
- CPPUNIT_ASSERT_EQUAL(std::numeric_limits<long>::min(), static_cast<long>(bi));
+ CPPUNIT_ASSERT_EQUAL(std::numeric_limits<tools::Long>::min(), static_cast<tools::Long>(bi));
}
// positive number not fitting to long
{
- BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max())
+ BigInt bi(static_cast<sal_Int64>(std::numeric_limits<tools::Long>::max())
+ static_cast<sal_Int64>(1));
CPPUNIT_ASSERT(bi.IsSet());
CPPUNIT_ASSERT(!bi.IsZero());
@@ -89,7 +89,7 @@ void BigIntTest::testConstructionFromLongLong()
// negative number not fitting to long
{
- BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::min())
+ BigInt bi(static_cast<sal_Int64>(std::numeric_limits<tools::Long>::min())
- static_cast<sal_Int64>(1));
CPPUNIT_ASSERT(bi.IsSet());
CPPUNIT_ASSERT(!bi.IsZero());