summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-17 12:20:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-17 13:59:40 +0100
commitda69c7633a486651f9f4fd4cfd08f167881e0bd6 (patch)
treea14313acaa352b6a37e2d983cde9c6cff5431525 /lotuswordpro
parentb34abf1d3d19ebe55dc899b9579213bda0fb9643 (diff)
coverity#736883 Unintended sign extension
Change-Id: I8e6a81b6c1605bd1be33f5f8d75d2472a39361d4
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 1a018a4edc47..89eaa0444fac 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -449,7 +449,7 @@ LwpCellLayout * LwpTableLayout::GetCellByRowCol(sal_uInt16 nRow, sal_uInt16 nCol
if (nRow >= m_nRows || nCol >= m_nCols)
return NULL;
- return m_WordProCellsMap[nRow*m_nCols + nCol];
+ return m_WordProCellsMap[static_cast<size_t>(nRow)*m_nCols + nCol];
}
/**
* @short traverse all table cells