Kaydet (Commit) 40240d33 authored tarafından David Tardon's avatar David Tardon

coverity#1202743 bad bit shift operation

Change-Id: I9d1691fa2136bf8d6a0aaed69c4aff4e26c33c6b
üst 1bb27282
...@@ -744,6 +744,7 @@ inline long ColorMask::ImplCalcMaskShift( sal_uLong nMask, sal_uLong& rOr, sal_u ...@@ -744,6 +744,7 @@ inline long ColorMask::ImplCalcMaskShift( sal_uLong nMask, sal_uLong& rOr, sal_u
nLen++; nLen++;
} }
assert( nLen <= 8 ); // mask length must be 8 bits or less
rOrShift = 8L - nLen; rOrShift = 8L - nLen;
rOr = (sal_uInt8) ( ( 0xffUL >> nLen ) << rOrShift ); rOr = (sal_uInt8) ( ( 0xffUL >> nLen ) << rOrShift );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment