summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-14 13:39:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-14 13:42:21 +0100
commitbdbe854a4a56a9cc11f3028db98b8150c17dab77 (patch)
tree61188dc89973d3ca885af78122b29f6bf30264ee /lotuswordpro
parentb577c99adca2e4c2f506cb9107a6d4489f5a2744 (diff)
coverity#736885 Unintended sign extension
and coverity#736886 Unintended sign extension promote from unsigned short to size_t immediately rather than implicitly to int and then have the int result widened to size_t Change-Id: I3156ed9628287a84da35d97caec8d91ce942986d
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.hxx b/lotuswordpro/source/filter/lwptablelayout.hxx
index f6dd6acc8be7..1e7fb3b35a65 100644
--- a/lotuswordpro/source/filter/lwptablelayout.hxx
+++ b/lotuswordpro/source/filter/lwptablelayout.hxx
@@ -102,7 +102,7 @@ public:
{
if (nRow >= m_nRows || nCol >= m_nCols)
return;
- m_WordProCellsMap[nRow * m_nCols + nCol] = pCell;
+ m_WordProCellsMap[static_cast<size_t>(nRow) * m_nCols + nCol] = pCell;
};
protected:
void Read() SAL_OVERRIDE;