Skip to content

Commit

Permalink
Update src/utils/Math.h
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Niethammer <[email protected]>
  • Loading branch information
amartyads and cniethammer authored Nov 26, 2024
1 parent ed42fac commit 393f26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool inline isNearRel(double a, double b, double maxRelativeDifference = 1e-9)
const auto greaterNumber = std::max(std::abs(a), std::abs(b));
const auto absoluteDifference = maxRelativeDifference * greaterNumber;
const auto diff = std::abs(a - b);
return diff <= absoluteDifference;
return (diff <= absoluteDifference);
}

/**
Expand Down

0 comments on commit 393f26a

Please sign in to comment.