diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-12 16:44:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-12 16:44:19 +0100 |
commit | 3d660c04bce0b5d24b5ec2558727c25ba13171b3 (patch) | |
tree | f8c890b8bbba28311e0b07995cecaddf64220ac7 /vcl | |
parent | ac05275755240dbd35f4ea802a8efb2fa4aaa85d (diff) |
Work around -fsanitize=shift
Change-Id: I8d23c11decca864337ccc5288165058a7c21cd4e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/regionband.cxx | 4 |
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; |