derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6c2a3a2034dca023c01db6316a7ec8d5313c228d

commit 6c2a3a2034dca023c01db6316a7ec8d5313c228d
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Jun 3 16:24:26 2016 -0500

    ecore_anim: Fix bad assumption about signedness of chars
    
    Whether "char" is signed or unsigned is architecture dependent, so if we
    know we need a -1 in a char type we must declared it to be signed.
---
 src/lib/ecore/ecore_anim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 5e5e034..80b389c 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -84,7 +84,7 @@ static Ecore_Thread *timer_thread = NULL;
 static volatile int timer_event_is_busy = 0;
 
 static void
-_tick_send(char val)
+_tick_send(signed char val)
 {
    DBG("_tick_send(%i)", val);
    if (pipe_write(timer_fd_write, &val, 1) != 1)
@@ -111,7 +111,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread 
*thread)
    fd_set rfds, wfds, exfds;
    struct timeval tv;
    unsigned int t;
-   char tick = 0;
+   signed char tick = 0;
    double t0, d;
    int ret;
 

-- 


Reply via email to