[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Mon May 23 11:18:08 UTC 2016
vcl/source/filter/igif/gifread.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cffc2471bc7d08f27a995e4e0f6fcf49d74d0f5a
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon May 23 13:17:38 2016 +0200
Silence C4334: '<<': result of 32-bit shift implicitly converted to 64 bits
Change-Id: I40173fe1bb22b8444b1a85f8bdecc07a9f9c354f
diff --git a/vcl/source/filter/igif/gifread.cxx b/vcl/source/filter/igif/gifread.cxx
index e45df54..4edb056 100644
--- a/vcl/source/filter/igif/gifread.cxx
+++ b/vcl/source/filter/igif/gifread.cxx
@@ -248,7 +248,7 @@ bool GIFReader::ReadGlobalHeader()
bGlobalPalette = ( nRF & 0x80 );
if( bGlobalPalette )
- ReadPaletteEntries( &aGPalette, 1UL << ( ( nRF & 7 ) + 1 ) );
+ ReadPaletteEntries( &aGPalette, sal_uLong(1) << ( ( nRF & 7 ) + 1 ) );
else
nBackgroundColor = 0;
@@ -459,7 +459,7 @@ bool GIFReader::ReadLocalHeader()
if( nFlags & 0x80 )
{
pPal = &aLPalette;
- ReadPaletteEntries( pPal, 1UL << ( (nFlags & 7 ) + 1 ) );
+ ReadPaletteEntries( pPal, sal_uLong(1) << ( (nFlags & 7 ) + 1 ) );
}
else
pPal = &aGPalette;
More information about the Libreoffice-commits
mailing list