els_box: Fix warning with clang
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 6 Apr 2016 06:16:37 +0000 (15:16 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 6 Apr 2016 07:28:33 +0000 (16:28 +0900)
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

index 1499c0b..b874c79 100644 (file)
@@ -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