diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-12 08:31:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-12 08:31:01 +0200 |
commit | 9885c35ddb9188e5b1549edf8697f6946232f7d3 (patch) | |
tree | 36b45cdbdfbb7a36457db300ed644926998a3eae /vcl | |
parent | 3183bfa7da9771ef355538751d81009e9c1c5c8c (diff) |
Avoid undefined left shift of negative value
Change-Id: I6496a16c4d6791af43a67dae57b9ee218c3444fe
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bmpfast.cxx | 2 |
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 ) |