summaryrefslogtreecommitdiff
path: root/include/vcl/salbtype.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-03-17 12:44:36 +0100
committerJan Holesovsky <kendy@collabora.com>2015-03-19 18:11:56 +0100
commit684aec5496f7394969743614cfda12b11c0466af (patch)
tree5f712feee71e75d4d3d133525397ce1e6e346973 /include/vcl/salbtype.hxx
parent45ad2b6f0fe4528995ca1eca7539857a95e4e848 (diff)
Dr.Memory complains about this...
Change-Id: I00ad970ab7cc97cfa37d6785540d6cfa825976c8
Diffstat (limited to 'include/vcl/salbtype.hxx')
-rw-r--r--include/vcl/salbtype.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx
index 40dfd8f8ba17..1dd62c2c7117 100644
--- a/include/vcl/salbtype.hxx
+++ b/include/vcl/salbtype.hxx
@@ -406,7 +406,7 @@ inline BitmapColor& BitmapColor::Invert()
inline sal_uInt8 BitmapColor::GetLuminance() const
{
DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" );
- return( (sal_uInt8) ( ( mcBlueOrIndex * 28UL + mcGreen * 151UL + mcRed * 77UL ) >> 8UL ) );
+ return (unsigned long(mcBlueOrIndex) * 28UL + unsigned long(mcGreen) * 151UL + unsigned long(mcRed) * 77UL) >> 8;
}
inline BitmapColor& BitmapColor::IncreaseLuminance( sal_uInt8 cGreyInc )