summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-12 16:44:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-12 16:44:19 +0100
commit3d660c04bce0b5d24b5ec2558727c25ba13171b3 (patch)
treef8c890b8bbba28311e0b07995cecaddf64220ac7 /vcl
parentac05275755240dbd35f4ea802a8efb2fa4aaa85d (diff)
Work around -fsanitize=shift
Change-Id: I8d23c11decca864337ccc5288165058a7c21cd4e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/regionband.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 0503ef2be248..56c0d66e0913 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -480,7 +480,7 @@ bool RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLi
if ( nDX >= nDY )
{
- const long nDYX = ( nDY - nDX ) << 1;
+ const long nDYX = ( nDY - nDX ) * 2;
const long nDY2 = nDY << 1;
long nD = nDY2 - nDX;
@@ -496,7 +496,7 @@ bool RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLi
}
else
{
- const long nDYX = ( nDX - nDY ) << 1;
+ const long nDYX = ( nDX - nDY ) * 2;
const long nDY2 = nDX << 1;
long nD = nDY2 - nDY;