From 2cfe99dc4716bb77d500e2e9b88a57ee621e2135 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 25 Mar 2019 11:42:40 +1100 Subject: Use generic std::abs instead of abs and fabs. --- cocoa/PlatCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/PlatCocoa.mm') diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 08b3facfd..2b41f476d 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -252,7 +252,7 @@ void AddToIntervalVector(std::vector &vi, XYPOSITION left, XYPOSITION vi.push_back(interval); } else { Interval &last = vi.back(); - if (fabs(last.right-interval.left) < 0.01) { + if (std::abs(last.right-interval.left) < 0.01) { // If new left is very close to previous right then extend last item last.right = interval.right; } else { -- cgit v1.2.3