summaryrefslogtreecommitdiff
path: root/canvas/source/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:35:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:36:04 +0100
commitfe23abd3812e08015facbbb2eb725dd990d63fa0 (patch)
tree05f39d446798ea695bc82df0e94d0bd5175342ba /canvas/source/tools
parent340e70e248824a3a4959fa1dee90c5650f257ae8 (diff)
Be explicit when using bool as integral value
Change-Id: I3a6b9df9b1b6c48d5db506942d651f66cefdaa18
Diffstat (limited to 'canvas/source/tools')
-rw-r--r--canvas/source/tools/verifyinput.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index 48fdad5f6456..0c7dbcaf4a86 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -215,12 +215,12 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0
const sal_Int32 nBinaryState(
- 100000 * !::rtl::math::isFinite( matrix.m00 ) +
- 10000 * !::rtl::math::isFinite( matrix.m01 ) +
- 1000 * !::rtl::math::isFinite( matrix.m02 ) +
- 100 * !::rtl::math::isFinite( matrix.m10 ) +
- 10 * !::rtl::math::isFinite( matrix.m11 ) +
- 1 * !::rtl::math::isFinite( matrix.m12 ) );
+ 100000 * int(!::rtl::math::isFinite( matrix.m00 )) +
+ 10000 * int(!::rtl::math::isFinite( matrix.m01 )) +
+ 1000 * int(!::rtl::math::isFinite( matrix.m02 )) +
+ 100 * int(!::rtl::math::isFinite( matrix.m10 )) +
+ 10 * int(!::rtl::math::isFinite( matrix.m11 )) +
+ 1 * int(!::rtl::math::isFinite( matrix.m12 )) );
if( nBinaryState )
{
@@ -252,10 +252,10 @@ namespace canvas
#if OSL_DEBUG_LEVEL > 0
const sal_Int32 nBinaryState(
- 1000 * !::rtl::math::isFinite( matrix.m00 ) +
- 100 * !::rtl::math::isFinite( matrix.m01 ) +
- 10 * !::rtl::math::isFinite( matrix.m10 ) +
- 1 * !::rtl::math::isFinite( matrix.m11 ) );
+ 1000 * int(!::rtl::math::isFinite( matrix.m00 )) +
+ 100 * int(!::rtl::math::isFinite( matrix.m01 )) +
+ 10 * int(!::rtl::math::isFinite( matrix.m10 )) +
+ 1 * int(!::rtl::math::isFinite( matrix.m11 )) );
if( nBinaryState )
{