summaryrefslogtreecommitdiff
path: root/gtk/gtkemojicompletion.c
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2018-06-20 20:36:19 +0100
committerDaniel Boles <dboles.src@gmail.com>2018-06-20 20:38:27 +0100
commitf7ebff6aea163e172e1fa6f88ad8eeb75f796652 (patch)
tree96ae77aecbf07b044267734cf8e08ef4eacdf9cc /gtk/gtkemojicompletion.c
parent8aeced2c914d773d2406412a33fee34d78102a6a (diff)
downloadgtk+-f7ebff6aea163e172e1fa6f88ad8eeb75f796652.tar.gz
EmojiCompletion: Avoid un/signed compare warnings
(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)
Diffstat (limited to 'gtk/gtkemojicompletion.c')
-rw-r--r--gtk/gtkemojicompletion.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c
index a1feb472f4..21738e31e7 100644
--- a/gtk/gtkemojicompletion.c
+++ b/gtk/gtkemojicompletion.c
@@ -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;