summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2019-02-27 15:25:28 +0100
committerNiclas Zeising <zeising@daemonic.se>2019-02-27 15:25:28 +0100
commitd528eca772620bc06c182e03265fc5f70a4d35f7 (patch)
treef1c4c3f2af3c6dc14bdcdf1f7d164e65310fa66b
parenta212539500a17f265815e77b9a6047279824315f (diff)
Use fabsf when dealing with floating point numbers
-rw-r--r--Clock.c2
1 files changed, 1 insertions, 1 deletions
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);