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.
This commit is contained in:
Derek Foreman 2016-06-03 16:24:26 -05:00
parent e79eb53e8d
commit 6c2a3a2034
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ static Ecore_Thread *timer_thread = NULL;
static volatile int timer_event_is_busy = 0; static volatile int timer_event_is_busy = 0;
static void static void
_tick_send(char val) _tick_send(signed char val)
{ {
DBG("_tick_send(%i)", val); DBG("_tick_send(%i)", val);
if (pipe_write(timer_fd_write, &val, 1) != 1) 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; fd_set rfds, wfds, exfds;
struct timeval tv; struct timeval tv;
unsigned int t; unsigned int t;
char tick = 0; signed char tick = 0;
double t0, d; double t0, d;
int ret; int ret;