stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9f7c9f953644736640a1cb4f17994353a380c1ba

commit 9f7c9f953644736640a1cb4f17994353a380c1ba
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Fri Apr 11 11:50:47 2014 +0200

    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);
 }
 

-- 


Reply via email to