[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sat Jun 14 05:42:46 PDT 2014
lotuswordpro/source/filter/lwptablelayout.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bdbe854a4a56a9cc11f3028db98b8150c17dab77
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Jun 14 13:39:40 2014 +0100
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
diff --git a/lotuswordpro/source/filter/lwptablelayout.hxx b/lotuswordpro/source/filter/lwptablelayout.hxx
index f6dd6ac..1e7fb3b 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;
More information about the Libreoffice-commits
mailing list