diff --git a/Modules/Core/Common/include/itkHexahedronCell.hxx b/Modules/Core/Common/include/itkHexahedronCell.hxx index e7c49e9541b..c202e964fbe 100644 --- a/Modules/Core/Common/include/itkHexahedronCell.hxx +++ b/Modules/Core/Common/include/itkHexahedronCell.hxx @@ -452,7 +452,7 @@ HexahedronCell::EvaluatePosition(CoordinateType * x, else if ((itk::Math::abs(pcoords[0]) > ITK_DIVERGED) || (itk::Math::abs(pcoords[1]) > ITK_DIVERGED) || (itk::Math::abs(pcoords[2]) > ITK_DIVERGED)) { - return -1; + return false; } // if not converged, repeat diff --git a/Modules/Core/Common/include/itkQuadrilateralCell.hxx b/Modules/Core/Common/include/itkQuadrilateralCell.hxx index d1e1b5fafdc..da44dcdbb9c 100644 --- a/Modules/Core/Common/include/itkQuadrilateralCell.hxx +++ b/Modules/Core/Common/include/itkQuadrilateralCell.hxx @@ -373,7 +373,7 @@ QuadrilateralCell::EvaluatePosition(CoordinateType * x, // Test for bad divergence (S.Hirschberg 11.12.2001) else if ((itk::Math::abs(pcoords[0]) > ITK_DIVERGED) || (itk::Math::abs(pcoords[1]) > ITK_DIVERGED)) { - return -1; + return false; } // if not converged, repeat