Commit f2acb1db authored by ThomasKuehne's avatar ThomasKuehne Committed by Alan Coopersmith
Browse files

fix -Wabsolute-value compiler warning

Clock.c:2011:14: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘float’ [-Wabsolute-value]
 2011 |             (abs(new->clock.update) <= SECOND_HAND_TIME);
      |              ^~~

Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <>
parent e075308d
Pipeline #551449 passed with stages
in 1 minute and 13 seconds
......@@ -2016,7 +2016,7 @@ SetValues(Widget gcurrent, Widget grequest, Widget gnew,
(XtPointer) gnew);
new->clock.show_second_hand =
(abs(new->clock.update) <= SECOND_HAND_TIME);
(fabsf(new->clock.update) <= SECOND_HAND_TIME);
if (new->clock.show_second_hand != current->clock.show_second_hand)
redisplay = TRUE;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment