From 2f25c7160c6f4f03cae3eea335218d14e7dfcbef Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 5 Apr 2018 08:25:50 +0100 Subject: coverity#1433794 Unintended sign extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I674991f5621bf6cf5a9cbecac936872b48fbdbcd Reviewed-on: https://gerrit.libreoffice.org/52433 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/txtnode/fntcache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 2005af23df4b..bbfbe071d7e1 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -152,7 +152,7 @@ void SwFntObj::CreatePrtFont( const OutputDevice& rPrt ) const_cast(rPrt).SetFont( m_aFont ); const FontMetric aWinMet( rPrt.GetFontMetric() ); const_cast(rPrt).SetFont( aOldFnt ); - long nWidth = ( aWinMet.GetFontSize().Width() * m_nPropWidth ) / 100; + auto nWidth = ( aWinMet.GetFontSize().Width() * m_nPropWidth ) / 100; if( !nWidth ) ++nWidth; -- cgit