diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-06 14:53:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-06 15:15:12 +0100 |
commit | 55aa83da68e61fba781e8771d426035468483509 (patch) | |
tree | 833fbcdf810afc58a53c756cf8bed96fec1f3d93 /svtools | |
parent | d9f585b89bfcbfda47d718a15af52ce66390dd28 (diff) |
coverity#706073 Unintended sign extension
Change-Id: I13272490bf8a08cbfb1ffc37828fb30fb92f9139
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/imivctl2.cxx b/svtools/source/contnr/imivctl2.cxx index 0c48a7cda6f4..badf45c83df5 100644 --- a/svtools/source/contnr/imivctl2.cxx +++ b/svtools/source/contnr/imivctl2.cxx @@ -635,9 +635,9 @@ GridId IcnGridMap_Impl::GetGrid( sal_uInt16 nGridX, sal_uInt16 nGridY ) { Create(); if( _pView->nWinBits & WB_ALIGN_TOP ) - return nGridX + ( nGridY * _nGridCols ); + return nGridX + ( static_cast<GridId>(nGridY) * _nGridCols ); else - return nGridY + ( nGridX * _nGridRows ); + return nGridY + ( static_cast<GridId>(nGridX) * _nGridRows ); } GridId IcnGridMap_Impl::GetGrid( const Point& rDocPos, bool* pbClipped ) |