From: Wonki Kim Date: Mon, 15 Apr 2019 07:10:33 +0000 (+0900) Subject: scroll_mgr: fix a type for some vars to be portable X-Git-Tag: accepted/tizen/unified/20190419.020103~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ee8da4d752092fe276346fdcb7d09ad513055c6;p=platform%2Fupstream%2Fefl.git scroll_mgr: fix a type for some vars to be portable Summary: char type can be singed or unsinged according to the standard. variables for keeping sign value should be sign, and that is the reason why this patch modify a type for some variables explictly. Reviewers: eagleeye Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8604 Change-Id: I26054743fe8c184cc02b49bebe0301214c162e94 --- diff --git a/src/lib/elementary/efl_ui_scroll_manager.c b/src/lib/elementary/efl_ui_scroll_manager.c index 98da2fd..e58aa87 100644 --- a/src/lib/elementary/efl_ui_scroll_manager.c +++ b/src/lib/elementary/efl_ui_scroll_manager.c @@ -1023,7 +1023,7 @@ _efl_ui_scroll_manager_mouse_up_event_momentum_eval(Efl_Ui_Scroll_Manager_Data * { double t, at; Evas_Coord dx, dy, ax, ay, vel; - char sdx, sdy; + signed char sdx, sdy; t = ev->timestamp / 1000.0; @@ -1294,7 +1294,7 @@ _scroll_manager_momentum_animator_add(Efl_Ui_Scroll_Manager_Data *sd, double vx, #define INVERSE_MASS 1 #define ACCEL (FRICTION * INVERSE_MASS) double dur = 0.0; - char sdx = 0, sdy = 0; + signed char sdx = 0, sdy = 0; Evas_Coord dstx = 0, dsty = 0; /*