coverity#706005 Unintended sign extension
Change-Id: I5670617f03deaac0d8923a38f765c9870eacfc97
This commit is contained in:
parent
dea94c8899
commit
1680f88b10
@ -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;
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user