From cd8fb35951b8c01b546876b7a5c6fb9af79a8f42 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 6 Apr 2016 15:16:37 +0900 Subject: [PATCH] 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] --- src/lib/elementary/els_box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4