From 645285b0918b3b4e61fcfa8a90c3bf5102e3c21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 22 Nov 2008 00:45:56 +0000 Subject: [PATCH] Use fabs(), also fixes gcc4 builds. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28714 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/AnalogClock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/time/AnalogClock.cpp b/src/preferences/time/AnalogClock.cpp index 5982b86760..8524dd0b8a 100644 --- a/src/preferences/time/AnalogClock.cpp +++ b/src/preferences/time/AnalogClock.cpp @@ -294,7 +294,7 @@ OffscreenClock::_InHand(BPoint point, int32 ticks, float radius) float pointPhi = _GetPhi(point); float handPhi = PI / 30.0 * ticks; float delta = pointPhi - handPhi; - if (abs(delta) > DRAG_DELTA_PHI) + if (fabs(delta) > DRAG_DELTA_PHI) return false; return true;