evas: remove float comparison warnings for evas_canvas3d_node
authorChris Michael <cp.michael@samsung.com>
Tue, 20 Dec 2016 15:16:35 +0000 (10:16 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 20 Dec 2016 15:25:51 +0000 (10:25 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/canvas/evas_canvas3d_node.c

index a86560c..bdc1531 100644 (file)
@@ -34,9 +34,9 @@ _generate_unic_color_key(Evas_Color *color, Evas_Color *bg_color, Evas_Canvas3D_
 
    GET_NEXT_COLOR
    /*Get another color if color equal with background color*/
-   if ((bg_color->r == (double)red) &&
-       (bg_color->g == (double)green) &&
-       (bg_color->b == (double)blue))
+   if ((EINA_DBL_CMP(bg_color->r, (double)red)) &&
+       (EINA_DBL_CMP(bg_color->g, (double)green)) &&
+       (EINA_DBL_CMP(bg_color->b, (double)blue)))
      {
         GET_NEXT_COLOR
      }