From f418d62af3624ce6d1a9667bb500ef59d9389d7a Mon Sep 17 00:00:00 2001 From: Subodh Kumar Date: Mon, 9 Oct 2017 16:37:47 -0700 Subject: [PATCH] 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 --- 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 e458269..76eb6e4 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 3a5831e..76c9869 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); -- 2.7.4