From: James Turner Date: Sun, 22 May 2011 15:30:18 +0000 (+0100) Subject: Remove remaining use of fabsf() from the code, avoid an OSG header issue on OS-X. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b357dd7ac3109020b81b224de6a1bc3e9a436ede;p=flightgear.git Remove remaining use of fabsf() from the code, avoid an OSG header issue on OS-X. --- diff --git a/src/Instrumentation/HUD/HUD.hxx b/src/Instrumentation/HUD/HUD.hxx index 8539330f1..0ac07389e 100644 --- a/src/Instrumentation/HUD/HUD.hxx +++ b/src/Instrumentation/HUD/HUD.hxx @@ -269,7 +269,7 @@ public: _offset = n->getFloatValue("offset", offset); _min = n->getFloatValue("min", min); _max = n->getFloatValue("max", max); - _coeff = 1.0 - 1.0 / powf(10, fabsf(n->getFloatValue("damp", 0.0))); + _coeff = 1.0 - 1.0 / powf(10, fabs(n->getFloatValue("damp", 0.0))); SGPropertyNode *p = ((SGPropertyNode *)n)->getNode("property", false); if (p) { const char *path = p->getStringValue();