gengrid: fix integer division type casting warning 70/142070/2
authorSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 2 Aug 2017 10:50:20 +0000 (19:50 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Tue, 8 Aug 2017 06:31:58 +0000 (15:31 +0900)
Change-Id: I1c7db5310a4edb16f4fda13e2ce19c71e8389741
Signed-off-by: SangHyeon Jade Lee <dltkdgus1764@gmail.com>
src/lib/elm_gengrid.c

index 02be27e..8d5f070 100644 (file)
@@ -1727,10 +1727,10 @@ _reorder_item_move_animator_cb(void *data)
    tt = REORDER_EFFECT_TIME;
    t = ((0.0 > (t = ecore_loop_time_get() -
                   GG_IT(it)->moving_effect_start_time)) ? 0.0 : t);
-   dx = ((GG_IT(it)->tx - GG_IT(it)->ox) / 10)
-     * elm_config_scale_get();
-   dy = ((GG_IT(it)->ty - GG_IT(it)->oy) / 10)
-     * elm_config_scale_get();
+   dx = (Evas_Coord)((((double)GG_IT(it)->tx - (double)GG_IT(it)->ox) / 10.0)
+     * elm_config_scale_get());
+   dy = (Evas_Coord)((((double)GG_IT(it)->ty - (double)GG_IT(it)->oy) / 10.0)
+     * elm_config_scale_get());
 
    if (t <= tt)
      {