From 247c64fa02c53bb7a5c6e6d87d13a4eb598b78b2 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 16 Dec 2023 18:48:40 +0100 Subject: Drop incorrect conditional compilation Since commit 396196d6143e377f83a81557f4630ac7e7ad9471 (BigInt's non-big value type is currently sal_Int32, 2020-11-14), fixed-size sal_Int32 is used in the unit test; so it must not depend on size of unrelated long type. Change-Id: Ida276e87b927381d093796f4137774a18acded82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160857 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- tools/qa/cppunit/test_bigint.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx index 140562df0e23..3c7740fb7651 100644 --- a/tools/qa/cppunit/test_bigint.cxx +++ b/tools/qa/cppunit/test_bigint.cxx @@ -22,6 +22,8 @@ #include +#include + namespace tools { class BigIntTest : public CppUnit::TestFixture @@ -54,7 +56,6 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT_EQUAL(static_cast(-42), static_cast(bi)); } -#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG // positive number just fitting to sal_Int32 { BigInt bi(static_cast(std::numeric_limits::max())); @@ -88,7 +89,6 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT(bi.IsNeg()); CPPUNIT_ASSERT(!bi.IsLong()); } -#endif } CPPUNIT_TEST_SUITE_REGISTRATION(BigIntTest); -- cgit