summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2013-05-13 09:18:23 +0300
committerTor Lillqvist <tlillqvist@suse.com>2013-05-13 09:19:14 +0300
commit14a6eab0cbd3b60937177863a23dae28b555561c (patch)
treef10d3194d4016ee25ca03a020b841160fd82cf53
parentca8201ef54cd58e41504dc04101aa76c97a78733 (diff)
WaE: signed/unsigned mismatch
Change-Id: Id655a3f97107fd99bdf3c271fdc1938e22d6317d
-rw-r--r--vcl/win/source/gdi/salbmp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 0c89359c301f..b4679bfa2245 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;