Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#5128 from seanm/non-bool…
Browse files Browse the repository at this point in the history
…-return

BUG: -1 was being returned in a function that returns bool
  • Loading branch information
thewtex authored Jan 9, 2025
2 parents dbb5005 + db0990b commit 43bdc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkHexahedronCell.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ HexahedronCell<TCellInterface>::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
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkQuadrilateralCell.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ QuadrilateralCell<TCellInterface>::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
Expand Down

0 comments on commit 43bdc37

Please sign in to comment.