From f411616069d74ffbc4a104bfef850d256d878ddc Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 20 Dec 2016 10:16:35 -0500 Subject: [PATCH] evas: remove float comparison warnings for evas_canvas3d_node Signed-off-by: Chris Michael --- src/lib/evas/canvas/evas_canvas3d_node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/evas_canvas3d_node.c b/src/lib/evas/canvas/evas_canvas3d_node.c index a86560c..bdc1531 100644 --- a/src/lib/evas/canvas/evas_canvas3d_node.c +++ b/src/lib/evas/canvas/evas_canvas3d_node.c @@ -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 } -- 2.7.4