diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/salbtype.hxx | 1 |
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 ); |