summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-09 14:23:26 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-09 14:43:32 +0900
commit1ecaf6fa025137771ac05ca97b4f78c0b281d3d5 (patch)
treeaf193e18eb90c0e35ed91017efe93f1d40def228
parentf4d9188ca75b1961d1936abf47fb2685c35d5ee2 (diff)
efl_ui_spotlight: fix warning of implicit conversion of floating point
The result of integral division is converted into floating point. To fix the warning by assigning the result to integer variable, type cast is done.
-rw-r--r--src/lib/elementary/efl_ui_spotlight_manager_scroll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_spotlight_manager_scroll.c b/src/lib/elementary/efl_ui_spotlight_manager_scroll.c
index e75c3f955f..e7179a259d 100644
--- a/src/lib/elementary/efl_ui_spotlight_manager_scroll.c
+++ b/src/lib/elementary/efl_ui_spotlight_manager_scroll.c
@@ -60,7 +60,7 @@ _apply_box_properties(Eo *obj, Efl_Ui_Spotlight_Manager_Scroll_Data *pd)
60 double diff = i - current_pos; 60 double diff = i - current_pos;
61 Efl_Gfx_Entity *elem = efl_pack_content_get(pd->container, i); 61 Efl_Gfx_Entity *elem = efl_pack_content_get(pd->container, i);
62 62
63 geometry.x = (group_pos.x + group_pos.w/2)-(pd->page_size.w/2 - diff*pd->page_size.w); 63 geometry.x = (int)((group_pos.x + group_pos.w/2)-(pd->page_size.w/2 - diff*pd->page_size.w));
64 if (!eina_rectangles_intersect(&geometry.rect, &group_pos.rect)) 64 if (!eina_rectangles_intersect(&geometry.rect, &group_pos.rect))
65 { 65 {
66 efl_canvas_object_clipper_set(elem, pd->backclip); 66 efl_canvas_object_clipper_set(elem, pd->backclip);