diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-15 10:43:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-15 10:43:27 +0200 |
commit | f11ae206bb368f643dbbaa6856c1d9809ad5c7b5 (patch) | |
tree | 855dee9298b4da5e753ec7468014ec815dffbdd7 | |
parent | 1888cda3ff5f6e09b0778624fe5a4cf2aaecad50 (diff) |
cid#1412761,1412762: Avoid signed intermediary results
Change-Id: If7432eecc4bc3fa40754aa6d378b3175073aea1e
-rw-r--r-- | sw/source/core/doc/docsort.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |