[gnome-builder] fuzzy: fix -Wsign-compare warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] fuzzy: fix -Wsign-compare warnings
- Date: Tue, 28 Feb 2017 20:43:33 +0000 (UTC)
commit e4b68ef5ae0e55344f6c8e8f11c8cc27ddaa3414
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 28 12:43:18 2017 -0800
fuzzy: fix -Wsign-compare warnings
contrib/search/fuzzy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/contrib/search/fuzzy.c b/contrib/search/fuzzy.c
index 311aba6..cacf7e0 100644
--- a/contrib/search/fuzzy.c
+++ b/contrib/search/fuzzy.c
@@ -321,7 +321,7 @@ fuzzy_unref (Fuzzy *fuzzy)
static gboolean
fuzzy_do_match (FuzzyLookup *lookup,
FuzzyItem *item,
- gint table_index,
+ guint table_index,
gint score)
{
FuzzyItem *iter;
@@ -333,7 +333,7 @@ fuzzy_do_match (FuzzyLookup *lookup,
table = lookup->tables [table_index];
state = &lookup->state [table_index];
- for (; state [0] < table->len; state [0]++)
+ for (; state [0] < (gint)table->len; state [0]++)
{
iter = &g_array_index (table, FuzzyItem, state[0]);
@@ -406,7 +406,7 @@ fuzzy_match (Fuzzy *fuzzy,
GArray *matches = NULL;
GArray *root;
gchar *downcase = NULL;
- gint i;
+ guint i;
g_return_val_if_fail (fuzzy, NULL);
g_return_val_if_fail (!fuzzy->in_bulk_insert, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]