summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-02-13 14:20:32 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2015-02-13 14:20:32 +0000
commit2b8bc02e1226594c8b7bb155bf8ddc42ce1961ce (patch)
treedfe147b1e13a32d0cf34c6f1fc5acbeb69467696 /src/examples
parent06fe2fad0eb5bc16b58a448ba1c15cf9e53d9209 (diff)
edje, eeze: compiler portability (use full ternary operator)
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/edje/edje-box2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/edje/edje-box2.c b/src/examples/edje/edje-box2.c
index c61913b..9dea393 100644
--- a/src/examples/edje/edje-box2.c
+++ b/src/examples/edje/edje-box2.c
@@ -46,8 +46,8 @@ custom_layout(Evas_Object *o, Evas_Object_Box_Data *p, void *data EINA_UNUSED)
46 46
47 evas_object_geometry_get(o, &x, &y, &w, &h); 47 evas_object_geometry_get(o, &x, &y, &w, &h);
48 count = eina_list_count(p->children); 48 count = eina_list_count(p->children);
49 ww = w / (count?:1); 49 ww = w / (count ? count : 1);
50 hh = h / (count?:1); 50 hh = h / (count ? count : 1);
51 if (ww < 1) ww = 1; 51 if (ww < 1) ww = 1;
52 if (hh < 1) hh = 1; 52 if (hh < 1) hh = 1;
53 53