summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-06-08 16:38:02 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-06-08 17:09:38 +0200
commitb1709917c5f22c3304b9d23bb9e04fd7183be41f (patch)
tree766f4b190038b77e2cce100f7d978963354e9b91
parent13df35050cdf5e500e9dbe1290ca3dd83580f252 (diff)
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]
-rw-r--r--src/lib/evas/canvas/evas_3d_primitive.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_3d_primitive.c b/src/lib/evas/canvas/evas_3d_primitive.c
index 79b05d253e..bc5bf1bd87 100644
--- a/src/lib/evas/canvas/evas_3d_primitive.c
+++ b/src/lib/evas/canvas/evas_3d_primitive.c
@@ -45,8 +45,7 @@ _evas_3d_primitive_form_set(Eo *obj EINA_UNUSED,
45 Evas_3D_Primitive_Data *pd, 45 Evas_3D_Primitive_Data *pd,
46 Evas_3D_Mesh_Primitive form) 46 Evas_3D_Mesh_Primitive form)
47{ 47{
48 if ((form < EVAS_3D_MESH_PRIMITIVE_NONE) || 48 if (form >= EVAS_3D_MESH_PRIMITIVE_COUNT)
49 (form >= EVAS_3D_MESH_PRIMITIVE_COUNT))
50 { 49 {
51 ERR("Wrong form of primitive."); 50 ERR("Wrong form of primitive.");
52 return; 51 return;