coverity#705542 Unintentional integer overflow

Change-Id: I87712c71689d45259bc9e4e2f71c92375bc887ea
This commit is contained in:
Caolán McNamara
2014-05-16 09:57:18 +01:00
parent 6c7f1e1b5a
commit cb6464fd73

View File

@@ -946,7 +946,7 @@ bool Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p
{
const long nWidth = pWriteAcc->Width();
const long nHeight = pWriteAcc->Height();
const sal_uLong nEntryCount = 1L << pWriteAcc->GetBitCount();
const sal_uLong nEntryCount = 1UL << pWriteAcc->GetBitCount();
sal_uLong n;
PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ];