forked from enlightenment/efl
ecore_con: Force unsigned to unsigned comparison
num was changed to size_t which makes it unsigned while count is a normal (signed) int. Comparing them does not always work as expected but in this case we already checked if count is < 0 before and would have returned if that would be true. Thus we can safely cast count to unsigned here as it will be greater 0 anyway.
This commit is contained in:
parent
5f0c9e43b5
commit
9f7c9f9536
|
@ -2396,7 +2396,7 @@ _ecore_con_server_flush(Ecore_Con_Server *svr)
|
|||
if (svr->fd_handler)
|
||||
ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ);
|
||||
}
|
||||
else if ((count < num) && svr->fd_handler)
|
||||
else if (((unsigned int)count < num) && svr->fd_handler)
|
||||
ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue