summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-07-10 14:16:24 +0200
committerPhilip Withnall <withnall@endlessm.com>2018-07-10 14:16:24 +0200
commite40e77f9be999dd1bb07d9a6f8403de092b97893 (patch)
tree4bf7ed419c0e5ce6f60b1a78eef800c6b8a525c0
parent03bad7894782c1f3192cc8930027d7dda3bfa0ca (diff)
downloadglib-e40e77f9be999dd1bb07d9a6f8403de092b97893.tar.gz
gqueue: Fix -Wsign-compare warnings
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--glib/gqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/gqueue.c b/glib/gqueue.c
index bf172f6ff..9f34790b9 100644
--- a/glib/gqueue.c
+++ b/glib/gqueue.c
@@ -372,7 +372,7 @@ g_queue_push_nth (GQueue *queue,
{
g_return_if_fail (queue != NULL);
- if (n < 0 || n >= queue->length)
+ if (n < 0 || (guint) n >= queue->length)
{
g_queue_push_tail (queue, data);
return;
@@ -475,7 +475,7 @@ g_queue_push_nth_link (GQueue *queue,
g_return_if_fail (queue != NULL);
g_return_if_fail (link_ != NULL);
- if (n < 0 || n >= queue->length)
+ if (n < 0 || (guint) n >= queue->length)
{
g_queue_push_tail_link (queue, link_);
return;
@@ -749,7 +749,7 @@ g_queue_peek_nth_link (GQueue *queue,
guint n)
{
GList *link;
- gint i;
+ guint i;
g_return_val_if_fail (queue != NULL, NULL);