jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6637e7cda96e556c057205bb9efc55dd99242647

commit 6637e7cda96e556c057205bb9efc55dd99242647
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Tue Apr 21 18:54:07 2015 +0900

    Evas filters: Fix clang warnings
---
 src/lib/evas/filters/evas_filter_bump.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/filters/evas_filter_bump.c 
b/src/lib/evas/filters/evas_filter_bump.c
index a269145..2d42e6e 100644
--- a/src/lib/evas/filters/evas_filter_bump.c
+++ b/src/lib/evas/filters/evas_filter_bump.c
@@ -137,14 +137,14 @@ _bump_map_cpu_alpha_alpha(Evas_Filter_Command *cmd)
      }
 
    // Compute appropriate lx, ly
-   if (abs(zangle) >= 90)
+   if (fabsf(zangle) >= 90.f)
      {
         WRN("Z angle was defined as %.0f, out of range. Defaults to %.0f.",
             zangle, DEFAULT_ZANGLE);
         zangle = DEFAULT_ZANGLE;
      }
 
-   lxy = sin(abs(zangle * M_PI / 180.));
+   lxy = sin(fabs(zangle * M_PI / 180.));
    lx = (int) (40.f * (lxy + 1.0) * cos(xyangle * M_PI / 180.));
    ly = (int) (40.f * (lxy + 1.0) * sin(xyangle * M_PI / 180.));
    INF("Using light vector (%d,%d)", lx, ly);
@@ -266,7 +266,7 @@ _bump_map_cpu_alpha_rgba(Evas_Filter_Command *cmd)
    color = cmd->bump.color;
 
    // Compute appropriate lx, ly
-   if (abs(zangle) >= 90)
+   if (fabs(zangle) >= 90.)
      {
         WRN("Z angle was defined as %.0f, out of range. Defaults to %.0f.",
             zangle, DEFAULT_ZANGLE);

-- 


Reply via email to