[libgdata] freebase: Remove a redundant comparison with zero
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] freebase: Remove a redundant comparison with zero
- Date: Sun, 22 Jun 2014 16:33:06 +0000 (UTC)
commit 3eae031819ca35e93fd682c0246b7ca57085abfe
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sun Jun 22 17:32:38 2014 +0100
freebase: Remove a redundant comparison with zero
Unsigned values can never be less than zero.
.../freebase/gdata-freebase-search-query.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/freebase/gdata-freebase-search-query.c
b/gdata/services/freebase/gdata-freebase-search-query.c
index de6bf59..1f3b9bb 100644
--- a/gdata/services/freebase/gdata-freebase-search-query.c
+++ b/gdata/services/freebase/gdata-freebase-search-query.c
@@ -225,8 +225,8 @@ build_filter_string (FilterNode *node,
const gchar *type_str[] = { "all", "any", "not" };
guint i;
- g_assert (node->container.filter_type >=0 &&
- node->container.filter_type < G_N_ELEMENTS (type_str));
+ g_assert (/* node->container.filter_type >= 0 && */
+ node->container.filter_type < G_N_ELEMENTS (type_str));
g_string_append_printf (str, "(%s", type_str[node->container.type]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]