diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 11:50:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:46 +0100 |
commit | 1acab105ba508b559d98600388b4d6be39dfad05 (patch) | |
tree | 6d5ca6c308bbd4faa17ac0f71229df4fb19c9134 /basegfx | |
parent | ae83e285473f703958c21e23b2a455e6646d8542 (diff) |
Be explicit when using bool as integral value
Change-Id: I301ff695359cb7e29269f1b99db0c3a547fd4c9f
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygonclipper.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index 6a460430c168..2cf7c30eb1de 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -732,7 +732,7 @@ namespace basegfx stack[2] = rCandidate.getB2DPoint(nIndex); // clipping judgement - clipflag |= !(rRange.isInside(stack[2])); + clipflag |= unsigned(!(rRange.isInside(stack[2]))); if(nIndex > 1) { diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 535e8cd6acda..0cf0a37a4671 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -2234,7 +2234,7 @@ namespace basegfx /// return 0 for input of 0, -1 for negative and 1 for positive input inline int lcl_sgn( const double n ) { - return n == 0.0 ? 0 : 1 - 2*::rtl::math::isSignBitSet(n); + return n == 0.0 ? 0 : 1 - 2*int(rtl::math::isSignBitSet(n)); } } |