kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16-epplets.git/commit/?id=722ca7bb8182fa568c95ccff1d107754ac7e5c1e

commit 722ca7bb8182fa568c95ccff1d107754ac7e5c1e
Author: Kim Woelders <[email protected]>
Date:   Sat Feb 9 09:05:52 2019 +0100

    Warning fixes for gcc 9
---
 epplets/cloak.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/epplets/cloak.c b/epplets/cloak.c
index e5ebb19..321c9d2 100644
--- a/epplets/cloak.c
+++ b/epplets/cloak.c
@@ -853,9 +853,9 @@ draw_ball(void)
      {
        ball_x = rand() % 39;
        ball_y = rand() % 39;
-       while (abs(d_x) < 0.5)
+       while (fabs(d_x) < 0.5)
           d_x = ((double)rand() / RAND_MAX * 4) - 2.0;
-       while (abs(d_y) < 0.5)
+       while (fabs(d_y) < 0.5)
           d_y = ((double)rand() / RAND_MAX * 4) - 2.0;
        blank_buf();
        setup = 1;
@@ -997,7 +997,7 @@ aa_line(int x1, int y1, int x2, int y2, unsigned char b,
    line_width = (x2 - x1);
    line_height = (y2 - y1);
 
-   if (abs(line_width) > abs(line_height))
+   if (fabs(line_width) > fabs(line_height))
      {
        if (x1 > x2)
          {
@@ -1013,7 +1013,7 @@ aa_line(int x1, int y1, int x2, int y2, unsigned char b,
 
        /* This is currently broken. It is supposed to account
         * for lines that don't span more than one pixel */
-       if (abs(line_width) < 0.1)
+       if (fabs(line_width) < 0.1)
          {
             x2 = x1 + 0.5;
             x1 -= 0.5;
@@ -1101,7 +1101,7 @@ aa_line(int x1, int y1, int x2, int y2, unsigned char b,
          }
 
        /* This is currently broken */
-       if (abs(line_height) < 0.1)
+       if (fabs(line_height) < 0.1)
          {
             y2 = y1 + 0.5;
             y1 -= 0.5;

-- 


Reply via email to