cedric pushed a commit to branch master.

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

commit f418d62af3624ce6d1a9667bb500ef59d9389d7a
Author: Subodh Kumar <s7158.ku...@samsung.com>
Date:   Mon Oct 9 16:37:47 2017 -0700

    eina: comparing less than zero with unsigned long int
    
    Summary:
    Unsigned integer should not be compared to less than zero
    @fix
    
    Test Plan: NA
    
    Reviewers: cedric
    
    Reviewed By: cedric
    
    Subscribers: jpeg
    
    Differential Revision: https://phab.enlightenment.org/D5269
    
    Signed-off-by: Cedric Bail <ced...@osg.samsung.com>
---
 src/lib/eina/eina_file.c       | 2 +-
 src/lib/eina/eina_file_win32.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index e4582697c1..76eb6e4a71 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -606,7 +606,7 @@ eina_file_split(char *path)
      {
         length = current - path;
 
-        if (length <= 0)
+        if (length == 0)
            continue;
 
         eina_array_push(ea, path);
diff --git a/src/lib/eina/eina_file_win32.c b/src/lib/eina/eina_file_win32.c
index 3a5831ea10..76c9869861 100644
--- a/src/lib/eina/eina_file_win32.c
+++ b/src/lib/eina/eina_file_win32.c
@@ -547,7 +547,7 @@ eina_file_split(char *path)
      {
         length = current - path;
 
-        if (length <= 0)
+        if (length == 0)
            continue;
 
         eina_array_push(ea, path);

-- 


Reply via email to