From 838d0cd4f397feef5b393942ec77185c00ccb811 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 19 Jan 2014 15:42:23 -0600 Subject: coverity#1000814 coverity#1000815 : Unintended sign extension Change-Id: Ia9e40dba5ef2beca2ebc6cc40672d6804d430af0 --- basctl/source/basicide/baside2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index cc3a6e6a893b..2f8744e1dc4e 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -791,9 +791,9 @@ void ModulWindow::EditMacro( const OUString& rMacroName ) long nVisHeight = GetOutputSizePixel().Height(); if ( (long)pView->GetTextEngine()->GetTextHeight() > nVisHeight ) { - long nMaxY = pView->GetTextEngine()->GetTextHeight() - nVisHeight; + long nMaxY = (long)pView->GetTextEngine()->GetTextHeight() - nVisHeight; long nOldStartY = pView->GetStartDocPos().Y(); - long nNewStartY = nStart * pView->GetTextEngine()->GetCharHeight(); + long nNewStartY = (long)nStart * (long)pView->GetTextEngine()->GetCharHeight(); nNewStartY = std::min( nNewStartY, nMaxY ); pView->Scroll( 0, -(nNewStartY-nOldStartY) ); pView->ShowCursor( false, true ); -- cgit