eina: comparing less than zero with unsigned long int
authorSubodh Kumar <s7158.kumar@samsung.com>
Mon, 9 Oct 2017 23:37:47 +0000 (16:37 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Mon, 9 Oct 2017 23:37:50 +0000 (16:37 -0700)
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 <cedric@osg.samsung.com>
src/lib/eina/eina_file.c
src/lib/eina/eina_file_win32.c

index e458269..76eb6e4 100644 (file)
@@ -606,7 +606,7 @@ eina_file_split(char *path)
      {
         length = current - path;
 
-        if (length <= 0)
+        if (length == 0)
            continue;
 
         eina_array_push(ea, path);
index 3a5831e..76c9869 100644 (file)
@@ -547,7 +547,7 @@ eina_file_split(char *path)
      {
         length = current - path;
 
-        if (length <= 0)
+        if (length == 0)
            continue;
 
         eina_array_push(ea, path);