aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-25 11:42:40 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-25 11:42:40 +1100
commit2cfe99dc4716bb77d500e2e9b88a57ee621e2135 (patch)
tree17efb792e6e51473c96e8983f58db6c279d5f193 /cocoa/PlatCocoa.mm
parent1cf755b51cc643240f60131a8fac5e990cfa5e9f (diff)
downloadscintilla-mirror-2cfe99dc4716bb77d500e2e9b88a57ee621e2135.tar.gz
Use generic std::abs instead of abs and fabs.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
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<Interval> &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 {