diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/xdatapilotdescriptor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx index aa333a073c72..a9cbcf5b125c 100644 --- a/test/source/sheet/xdatapilotdescriptor.cxx +++ b/test/source/sheet/xdatapilotdescriptor.cxx @@ -16,6 +16,7 @@ #include <cppunit/TestAssert.h> +#include <o3tl/safeint.hxx> #include <rtl/ustring.hxx> using namespace css; @@ -177,7 +178,7 @@ void XDataPilotDescriptor::testGetHiddenFields() void XDataPilotDescriptor::checkName( uno::Reference< container::XIndexAccess > const & xIndex, sal_Int32 nIndex ) { CPPUNIT_ASSERT(xIndex.is()); - CPPUNIT_ASSERT(maFieldNames.size() >= static_cast<size_t>(nIndex)); + CPPUNIT_ASSERT(maFieldNames.size() >= o3tl::make_unsigned(nIndex)); for (sal_Int32 i = 0; i < xIndex->getCount(); ++i) { |