From 1680f88b1074cca05e3516ad8ab9967d24c2488a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 30 May 2014 09:06:49 +0100 Subject: [PATCH] coverity#706005 Unintended sign extension Change-Id: I5670617f03deaac0d8923a38f765c9870eacfc97 --- filter/source/graphicfilter/icgm/cgm.cxx | 2 +- filter/source/graphicfilter/icgm/cgm.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx index a9808b717d43..2e73107d311a 100644 --- a/filter/source/graphicfilter/icgm/cgm.cxx +++ b/filter/source/graphicfilter/icgm/cgm.cxx @@ -112,7 +112,7 @@ sal_uInt8 CGM::ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision ) return (sal_uInt8)( nSource >> ( ( nPrecision - 1 ) << 3 ) ); }; -long CGM::ImplGetI( sal_uInt32 nPrecision ) +sal_Int32 CGM::ImplGetI( sal_uInt32 nPrecision ) { sal_uInt8* pSource = mpSource + mnParaSize; mnParaSize += nPrecision; diff --git a/filter/source/graphicfilter/icgm/cgm.hxx b/filter/source/graphicfilter/icgm/cgm.hxx index 25ab80a64970..e1e7f63f5e5f 100644 --- a/filter/source/graphicfilter/icgm/cgm.hxx +++ b/filter/source/graphicfilter/icgm/cgm.hxx @@ -94,7 +94,7 @@ class CGM sal_uInt32 ImplGetUI16( sal_uInt32 nAlign = 0 ); sal_uInt8 ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision ); - long ImplGetI( sal_uInt32 nPrecision ); + sal_Int32 ImplGetI( sal_uInt32 nPrecision ); sal_uInt32 ImplGetUI( sal_uInt32 nPrecision ); void ImplGetSwitch4( sal_uInt8* pSource, sal_uInt8* pDest ); void ImplGetSwitch8( sal_uInt8* pSource, sal_uInt8* pDest );