From d528eca772620bc06c182e03265fc5f70a4d35f7 Mon Sep 17 00:00:00 2001 From: Niclas Zeising Date: Wed, 27 Feb 2019 15:25:28 +0100 Subject: Use fabsf when dealing with floating point numbers --- Clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Clock.c') diff --git a/Clock.c b/Clock.c index bbfed20..64284bf 100644 --- a/Clock.c +++ b/Clock.c @@ -2173,7 +2173,7 @@ SetValues(Widget gcurrent, Widget grequest, Widget gnew, if (new->clock.update && XtIsRealized( (Widget) new)) new->clock.interval_id = XtAppAddTimeOut( XtWidgetToApplicationContext(gnew), - abs(new->clock.update)*1000, + fabsf(new->clock.update)*1000, clock_tic, (XtPointer)gnew); new->clock.show_second_hand =(abs(new->clock.update) <= SECOND_HAND_TIME); -- cgit v1.2.3