summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-12 08:31:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-12 08:31:01 +0200
commit9885c35ddb9188e5b1549edf8697f6946232f7d3 (patch)
tree36b45cdbdfbb7a36457db300ed644926998a3eae /vcl
parent3183bfa7da9771ef355538751d81009e9c1c5c8c (diff)
Avoid undefined left shift of negative value
Change-Id: I6496a16c4d6791af43a67dae57b9ee218c3444fe
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bmpfast.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index dc907e55e012..b81a6c001221 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -273,7 +273,7 @@ inline void ImplBlendPixels( const TrueColorPixelPtr<DSTFMT>& rDst,
{
if( !nAlphaVal )
ImplConvertPixel( rDst, rSrc );
- else if( nAlphaVal != ~(~0 << ALPHABITS) )
+ else if( nAlphaVal != ~(~0U << ALPHABITS) )
{
static const unsigned nAlphaShift = (ALPHABITS > 8) ? 8 : ALPHABITS;
if( ALPHABITS > nAlphaShift )