diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 13:25:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 14:52:24 +0100 |
commit | 9c3615fa1a8bd3fe5eabd2f4a6a5548bf723cc61 (patch) | |
tree | cac2897029733b35732fa46b79ff7a170353f2d3 /vcl/source | |
parent | bca68c4a34cfea8fce2318c95286fc23ceec920d (diff) |
coverity#706115 Unintended sign extension
and
coverity#706114 Unintended sign extension
coverity#706113 Unintended sign extension
Change-Id: Ib9ab82082fb353ecfc98a4130fdf2bb136ac1350
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/octree.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/octree.cxx b/vcl/source/gdi/octree.cxx index 21c0a4265e90..4517b9db234c 100644 --- a/vcl/source/gdi/octree.cxx +++ b/vcl/source/gdi/octree.cxx @@ -260,9 +260,9 @@ InverseColorMap::InverseColorMap( const BitmapPalette& rPal ) : for( sal_uLong nIndex = 0; nIndex < nColors; nIndex++ ) { const BitmapColor& rColor = rPal[ (sal_uInt16) nIndex ]; - const sal_uInt8 cRed = rColor.GetRed(); - const sal_uInt8 cGreen = rColor.GetGreen(); - const sal_uInt8 cBlue = rColor.GetBlue(); + const long cRed = rColor.GetRed(); + const long cGreen = rColor.GetGreen(); + const long cBlue = rColor.GetBlue(); rdist = cRed - x2; gdist = cGreen - x2; |