forked from enlightenment/efl
evas: remove float comparison warnings for evas_convert_color
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b58057e2e7
commit
f427050b61
|
@ -138,7 +138,7 @@ evas_common_convert_color_hsv_to_rgb(float h, float s, float v, int *r, int *g,
|
|||
float f;
|
||||
|
||||
v *= 255;
|
||||
if (s == 0)
|
||||
if (EINA_FLT_CMP(s, 0.0))
|
||||
{
|
||||
if (r) *r = v;
|
||||
if (g) *g = v;
|
||||
|
|
Loading…
Reference in New Issue