mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
gqueue: Fix -Wsign-compare warnings
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
03bad78947
commit
e40e77f9be
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user