Skip to content

Commit

Permalink
Bugfix: Use non-templated std::abs
Browse files Browse the repository at this point in the history
Fixes a clang-12 compilation error
  • Loading branch information
elvout authored and joydeep-b committed Jan 25, 2023
1 parent 899429d commit 3a34563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/line2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct Line {
} else if (math_util::Sq(x) > (p1 - p0).squaredNorm()) {
return (p - p1).norm();
}
return std::abs<T>(geometry::Perp(dir).dot(p - p0));
return std::abs(geometry::Perp(dir).dot(p - p0));
}

bool CloserThan(const Vector2T& p2,
Expand Down

0 comments on commit 3a34563

Please sign in to comment.