summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-17 12:25:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-17 13:59:40 +0100
commit7986b6a37151ec67ada5fd9ff7759b85412ae42f (patch)
tree54436b94e8e6814b5a842cae4f638f982fa03838
parent5a69d3afc74d26f325d9f78839e9b36b956aae15 (diff)
coverity#983449 Unintended sign extension
also coverity#983450 Change-Id: I43f88005ab130f74df2316f51ab898b112002044
-rw-r--r--sw/source/core/doc/htmltbl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index 206e755007b4..c4c105d8290e 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.cxx
@@ -176,7 +176,7 @@ SwHTMLTableLayout::SwHTMLTableLayout( const SwTable * pSwTbl,
sal_uInt16 nInhLeftBWidth,
sal_uInt16 nInhRightBWidth )
: aColumns( new SwHTMLTableLayoutColumnPtr[nCls] )
- , aCells( new SwHTMLTableLayoutCellPtr[nRws*nCls] )
+ , aCells( new SwHTMLTableLayoutCellPtr[static_cast<size_t>(nRws)*nCls] )
, pSwTable( pSwTbl )
, pLeftFillerBox( 0 )
, pRightFillerBox( 0 )