evas: remove float comparison warnings for evas_canvas3d_node

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-12-20 10:16:35 -05:00
parent cbc60f1dd1
commit f411616069
1 changed files with 3 additions and 3 deletions

View 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
}