[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Wed Sep 3 11:21:20 PDT 2014
filter/source/graphicfilter/ipict/ipict.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d0908389da7691ac8c2c01f04eaa7042d820ea2c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Sep 3 19:18:33 2014 +0100
pict filter depends on truncating 1-foo to 16bit unsigned
Change-Id: Ie271d6080833005d5ef9ab57d8e8036fb9df49db
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx
index d26d4b9..e3138e6 100644
--- a/filter/source/graphicfilter/ipict/ipict.cxx
+++ b/filter/source/graphicfilter/ipict/ipict.cxx
@@ -884,7 +884,7 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo
}
else
{
- nCount = ( 1 - ( ( (sal_uInt16)nFlagCounterByte ) | 0xff00 ) );
+ nCount = static_cast<sal_uInt16>( 1 - ( ( (sal_uInt16)nFlagCounterByte ) | 0xff00 ) );
pPict->ReadUChar( nDat );
for ( i = 0; i < nCount; i++ )
{
More information about the Libreoffice-commits
mailing list