diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-16 18:48:40 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-16 20:29:05 +0100 |
commit | 247c64fa02c53bb7a5c6e6d87d13a4eb598b78b2 (patch) | |
tree | 8d6b223969dd19ffefe04c8b2b855bcdca98e897 /tools | |
parent | 8c3a651a3f939bbc346ced5547326fe110958cdb (diff) |
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 <mike.kaganski@collabora.com>
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 140562df0e23..3c7740fb7651 100644 --- a/tools/qa/cppunit/test_bigint.cxx +++ b/tools/qa/cppunit/test_bigint.cxx @@ -22,6 +22,8 @@ #include <tools/bigint.hxx> +#include <limits> + namespace tools { class BigIntTest : public CppUnit::TestFixture @@ -54,7 +56,6 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(-42), static_cast<sal_Int32>(bi)); } -#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG // positive number just fitting to sal_Int32 { BigInt bi(static_cast<sal_Int64>(std::numeric_limits<sal_Int32>::max())); @@ -88,7 +89,6 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT(bi.IsNeg()); CPPUNIT_ASSERT(!bi.IsLong()); } -#endif } CPPUNIT_TEST_SUITE_REGISTRATION(BigIntTest); |