[tracker] tracker-search-bar: Comparison with unsigned integer (enum) is always true



commit 5b77ad7c31d34c2ccda71c3c354f6212c07bac45
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Apr 22 14:09:53 2010 +0200

    tracker-search-bar: Comparison with unsigned integer (enum) is always true

 src/tracker-search-bar/tracker-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-utils.c b/src/tracker-search-bar/tracker-utils.c
index 6ea439f..f3f8691 100644
--- a/src/tracker-search-bar/tracker-utils.c
+++ b/src/tracker-search-bar/tracker-utils.c
@@ -99,7 +99,7 @@ tracker_regex_match (TrackerRegExType  type,
 	gint       offset = 0;
 	gint       i;
 
-	g_return_val_if_fail (type >= 0 || type <= TRACKER_REGEX_ALL, 0);
+	g_return_val_if_fail (type <= TRACKER_REGEX_ALL, 0);
 
 	regex_init ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]