[Libreoffice-commits] core.git: vcl/win

Tor Lillqvist tlillqvist at suse.com
Sun May 12 23:19:40 PDT 2013


 vcl/win/source/gdi/salbmp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 14a6eab0cbd3b60937177863a23dae28b555561c
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Mon May 13 09:18:23 2013 +0300

    WaE: signed/unsigned mismatch
    
    Change-Id: Id655a3f97107fd99bdf3c271fdc1938e22d6317d

diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 0c89359..b4679bf 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -335,7 +335,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
     // calculate bitmap size in Bytes
     const sal_uLong nAlignedWidth4Bytes = AlignedWidth4Bytes( nBits * rSize.Width() );
     const sal_uLong nImageSize = nAlignedWidth4Bytes * rSize.Height();
-    bool bOverflow = (nImageSize / nAlignedWidth4Bytes) != rSize.Height();
+    bool bOverflow = (nImageSize / nAlignedWidth4Bytes) != (sal_uLong) rSize.Height();
     if( bOverflow )
         return hDIB;
 


More information about the Libreoffice-commits mailing list