els_box: Fix warning with clang

warning: comparison of constant 100 with expression of type
         'Evas_Aspect_Control' is always true
         [-Wtautological-constant-out-of-range-compare]
This commit is contained in:
Jean-Philippe Andre 2016-04-06 15:16:37 +09:00
parent 7c05a957cd
commit cd8fb35951
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ _smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int w, in
aspect = EVAS_ASPECT_CONTROL_NONE; aspect = EVAS_ASPECT_CONTROL_NONE;
ERR("Invalid aspect specified!"); ERR("Invalid aspect specified!");
} }
if (paspect < 100) //value starts overflowed as UINT_MAX if ((unsigned) paspect < 100) //value starts overflowed as UINT_MAX
{ {
/* this condition can cause some items to not be the same size, /* this condition can cause some items to not be the same size,
* resulting in a non-homogeneous homogeneous layout * resulting in a non-homogeneous homogeneous layout