From 9f7c9f953644736640a1cb4f17994353a380c1ba Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 11 Apr 2014 11:50:47 +0200 Subject: [PATCH] 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. --- src/lib/ecore_con/ecore_con.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index fb251d4..1defb80 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); } -- 2.7.4