From f11ae206bb368f643dbbaa6856c1d9809ad5c7b5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 15 Jun 2017 10:43:27 +0200 Subject: cid#1412761,1412762: Avoid signed intermediary results Change-Id: If7432eecc4bc3fa40754aa6d378b3175073aea1e --- sw/source/core/doc/docsort.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx index f2c02f409342..69e301ed17b4 100644 --- a/sw/source/core/doc/docsort.cxx +++ b/sw/source/core/doc/docsort.cxx @@ -937,7 +937,7 @@ const SfxItemSet* FlatFndBox::GetItemSet(sal_uInt16 n_Col, sal_uInt16 n_Row) con { OSL_ENSURE( ppItemSets.empty() || ( n_Col < nCols && n_Row < nRows), "invalid array access"); - return !ppItemSets.empty() ? ppItemSets[n_Row * nCols + n_Col].get() : nullptr; + return !ppItemSets.empty() ? ppItemSets[unsigned(n_Row * nCols) + n_Col].get() : nullptr; } sal_uInt16 SwMovedBoxes::GetPos(const SwTableBox* pTableBox) const -- cgit