[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Thu Jun 15 08:43:54 UTC 2017


 sw/source/core/doc/docsort.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f11ae206bb368f643dbbaa6856c1d9809ad5c7b5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jun 15 10:43:27 2017 +0200

    cid#1412761,1412762: Avoid signed intermediary results
    
    Change-Id: If7432eecc4bc3fa40754aa6d378b3175073aea1e

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


More information about the Libreoffice-commits mailing list