scroll_mgr: fix a type for some vars to be portable 88/203488/1
authorWonki Kim <wonki_.kim@samsung.com>
Mon, 15 Apr 2019 07:10:33 +0000 (16:10 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 15 Apr 2019 07:21:33 +0000 (16:21 +0900)
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

src/lib/elementary/efl_ui_scroll_manager.c

index 98da2fd..e58aa87 100644 (file)
@@ -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;
 
 /*