From 9c3615fa1a8bd3fe5eabd2f4a6a5548bf723cc61 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 3 Jul 2014 13:25:00 +0100 Subject: coverity#706115 Unintended sign extension and coverity#706114 Unintended sign extension coverity#706113 Unintended sign extension Change-Id: Ib9ab82082fb353ecfc98a4130fdf2bb136ac1350 --- vcl/source/gdi/octree.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source') 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; -- cgit