From 50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 25 Mar 2019 11:42:40 +1100 Subject: Backport: Use generic std::abs instead of abs and fabs. Backport of changeset 7330:09e5fe965a79. --- cocoa/ScintillaView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index d1816a25d..e89b1fdf1 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1342,7 +1342,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 zoomDelta += event.magnification * 10.0; - if (fabs(zoomDelta)>=1.0) { + if (std::abs(zoomDelta)>=1.0) { long zoomFactor = static_cast([self getGeneralProperty: SCI_GETZOOM] + zoomDelta); [self setGeneralProperty: SCI_SETZOOM parameter: zoomFactor value:0]; zoomDelta = 0.0; -- cgit v1.2.3