From b379d1c1c76169d39296dc1df6374bee9a2bf4ef Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Thu, 11 Nov 2021 11:07:34 -0600 Subject: [PATCH] STYLE: Use correct type for boolean expressions The testFailed flag is clearly a boolean value. --- .../Common/test/itkBSplineInterpolationWeightFunctionTest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Core/Common/test/itkBSplineInterpolationWeightFunctionTest.cxx b/Modules/Core/Common/test/itkBSplineInterpolationWeightFunctionTest.cxx index a42db6ad9a5..047ecfc63b7 100644 --- a/Modules/Core/Common/test/itkBSplineInterpolationWeightFunctionTest.cxx +++ b/Modules/Core/Common/test/itkBSplineInterpolationWeightFunctionTest.cxx @@ -67,7 +67,7 @@ itkBSplineInterpolationWeightFunctionTest(int, char *[]) IndexType startIndex1; IndexType startIndex2; - double testFailed = false; + bool testFailed = false; for (double x = 0.0; x <= 2.0; x += 0.1) { @@ -154,7 +154,7 @@ itkBSplineInterpolationWeightFunctionTest(int, char *[]) IndexType startIndex1; IndexType startIndex2; - double testFailed = false; + bool testFailed = false; for (double x = 0.0; x <= 2.0; x += 0.1) {