aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/InfoBar.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/InfoBar.mm
parent1cf755b51cc643240f60131a8fac5e990cfa5e9f (diff)
downloadscintilla-mirror-2cfe99dc4716bb77d500e2e9b88a57ee621e2135.tar.gz
Use generic std::abs instead of abs and fabs.
Diffstat (limited to 'cocoa/InfoBar.mm')
-rw-r--r--cocoa/InfoBar.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm
index 5dd74f46f..db30dd134 100644
--- a/cocoa/InfoBar.mm
+++ b/cocoa/InfoBar.mm
@@ -351,7 +351,7 @@ static float BarFontSize = 10.0;
// We only work with some preset zoom values. If the given value does not correspond
// to one then show no selection.
- while (count < numberOfDefaultItems && (fabs(newScaleFactor - DefaultScaleMenuFactors[count]) > 0.07))
+ while (count < numberOfDefaultItems && (std::abs(newScaleFactor - DefaultScaleMenuFactors[count]) > 0.07))
count++;
if (count == numberOfDefaultItems)
[mZoomPopup selectItemAtIndex: -1];