forked from enlightenment/efl
eavs_3d: Avoid enum check for < 0
Evas_3D_Mesh_Primitive is a enum starting from 0 so it never will be below 0. Just as the compiler tells us. Remove unneeded check. lib/evas/canvas/evas_3d_primitive.c:48:4: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
This commit is contained in:
parent
13df35050c
commit
b1709917c5
|
@ -45,8 +45,7 @@ _evas_3d_primitive_form_set(Eo *obj EINA_UNUSED,
|
|||
Evas_3D_Primitive_Data *pd,
|
||||
Evas_3D_Mesh_Primitive form)
|
||||
{
|
||||
if ((form < EVAS_3D_MESH_PRIMITIVE_NONE) ||
|
||||
(form >= EVAS_3D_MESH_PRIMITIVE_COUNT))
|
||||
if (form >= EVAS_3D_MESH_PRIMITIVE_COUNT)
|
||||
{
|
||||
ERR("Wrong form of primitive.");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue