From 55aa83da68e61fba781e8771d426035468483509 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 6 Jul 2014 14:53:46 +0100 Subject: coverity#706073 Unintended sign extension Change-Id: I13272490bf8a08cbfb1ffc37828fb30fb92f9139 --- svtools/source/contnr/imivctl2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svtools') 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(nGridY) * _nGridCols ); else - return nGridY + ( nGridX * _nGridRows ); + return nGridY + ( static_cast(nGridX) * _nGridRows ); } GridId IcnGridMap_Impl::GetGrid( const Point& rDocPos, bool* pbClipped ) -- cgit