diff options
author | Niclas Zeising <zeising@daemonic.se> | 2019-02-27 15:25:28 +0100 |
---|---|---|
committer | Niclas Zeising <zeising@daemonic.se> | 2019-02-27 15:25:28 +0100 |
commit | d528eca772620bc06c182e03265fc5f70a4d35f7 (patch) | |
tree | f1c4c3f2af3c6dc14bdcdf1f7d164e65310fa66b /Clock.c | |
parent | a212539500a17f265815e77b9a6047279824315f (diff) |
Use fabsf when dealing with floating point numbers
Diffstat (limited to 'Clock.c')
-rw-r--r-- | Clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |