diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-04-11 11:50:47 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-04-11 11:50:47 +0200 |
commit | 9f7c9f953644736640a1cb4f17994353a380c1ba (patch) | |
tree | 72b0a36a7c3e03e17b9aee1ee5958c7435238514 | |
parent | 5f0c9e43b5dbb8bb3bca650b391a85d1907f9d8d (diff) | |
download | efl-9f7c9f953644736640a1cb4f17994353a380c1ba.tar.gz |
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.
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index fb251d4ebe..1defb80d3f 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -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); } |