coverity#706005 Unintended sign extension

Change-Id: I5670617f03deaac0d8923a38f765c9870eacfc97
This commit is contained in:
Caolán McNamara 2014-05-30 09:06:49 +01:00
parent dea94c8899
commit 1680f88b10
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 );