summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-11-04 10:50:37 +0100
committerDavid Tardon <dtardon@redhat.com>2014-11-04 19:52:25 +0100
commit40240d33771f41310b0c7e7ba7f23a48105a0808 (patch)
tree1ebd537fa880bc106da250e805894f3df19471ba /include/vcl
parent1bb27282558f23ee6f94bb046f5905a65c94ba3d (diff)
coverity#1202743 bad bit shift operation
Change-Id: I9d1691fa2136bf8d6a0aaed69c4aff4e26c33c6b
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/salbtype.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx
index 92258c54f5db..9859aa3f1b83 100644
--- a/include/vcl/salbtype.hxx
+++ b/include/vcl/salbtype.hxx
@@ -744,6 +744,7 @@ inline long ColorMask::ImplCalcMaskShift( sal_uLong nMask, sal_uLong& rOr, sal_u
nLen++;
}
+ assert( nLen <= 8 ); // mask length must be 8 bits or less
rOrShift = 8L - nLen;
rOr = (sal_uInt8) ( ( 0xffUL >> nLen ) << rOrShift );