EmojiCompletion: Avoid un/signed compare warnings
authorDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 19:36:19 +0000 (20:36 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 19:38:27 +0000 (20:38 +0100)
(A) Use gsize to match the result of g_variant_n_children
(B) Use guint for n_matches, like the struct (and all other n_matches)

gtk/gtkemojicompletion.c

index a1feb472f4f0c55647339f14bd12caedafa1ad56..21738e31e7abc026f1b5c705284d8df89d313aea 100644 (file)
@@ -407,7 +407,7 @@ static gboolean
 has_variations (GVariant *emoji_data)
 {
   GVariant *codes;
-  int i;
+  gsize i;
   gboolean has_variations;
 
   has_variations = FALSE;
@@ -555,8 +555,8 @@ populate_completion (GtkEmojiCompletion *completion,
                      guint                offset)
 {
   GList *children, *l;
-  int n_matches;
-  int n_added;
+  guint n_matches;
+  guint n_added;
   GVariantIter iter;
   GVariant *item;