diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-25 11:42:40 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-25 11:42:40 +1100 |
| commit | 50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd (patch) | |
| tree | 816f87d781de223418432b915acf39bafef460b0 /cocoa/InfoBar.mm | |
| parent | 2c20e36f4ec739fd0887aceda589fce2c1757342 (diff) | |
| download | scintilla-mirror-50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd.tar.gz | |
Backport: Use generic std::abs instead of abs and fabs.
Backport of changeset 7330:09e5fe965a79.
Diffstat (limited to 'cocoa/InfoBar.mm')
| -rw-r--r-- | cocoa/InfoBar.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 19f2c6943..a351ce40f 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -392,7 +392,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]; |
