From 70c4972f48391551e4373c41e6e894f812780bcb Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 11 Apr 2015 21:59:37 +0100 Subject: [PATCH] Fix a clang warning. --- src/Input/FGMacOSXEventInput.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/FGMacOSXEventInput.cxx b/src/Input/FGMacOSXEventInput.cxx index a969fd6e2..20076ca27 100644 --- a/src/Input/FGMacOSXEventInput.cxx +++ b/src/Input/FGMacOSXEventInput.cxx @@ -353,7 +353,7 @@ AxisElement::AxisElement(CFDictionaryRef element, long page, long usage) : name = ((isRelative == true) ? "rel-" : "abs-") + name; - center = min + (max - abs(min)) * 0.5; + center = min + (max - std::abs(min)) * 0.5; SG_LOG(SG_INPUT, SG_DEBUG, "HID Axis Element; " << name << " min: " << min << " max:" << max << " center: " << center); SG_LOG(SG_INPUT, SG_DEBUG, "isRelative=" << isRelative << ", isWrapping=" << isWrapping << ", isNonLinear=" << isNonLinear); } -- 2.39.5