From: Jean-Philippe Andre Date: Wed, 6 Apr 2016 06:16:37 +0000 (+0900) Subject: els_box: Fix warning with clang X-Git-Tag: upstream/1.20.0~6913 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd8fb35951b8c01b546876b7a5c6fb9af79a8f42;p=platform%2Fupstream%2Fefl.git 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] --- diff --git a/src/lib/elementary/els_box.c b/src/lib/elementary/els_box.c index 1499c0b..b874c79 100644 --- a/src/lib/elementary/els_box.c +++ b/src/lib/elementary/els_box.c @@ -265,7 +265,7 @@ _smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int w, in aspect = EVAS_ASPECT_CONTROL_NONE; 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, * resulting in a non-homogeneous homogeneous layout