diff --git a/gio/gmemoryinputstream.c b/gio/gmemoryinputstream.c index 37846b6ac..a9e855cef 100644 --- a/gio/gmemoryinputstream.c +++ b/gio/gmemoryinputstream.c @@ -476,7 +476,7 @@ g_memory_input_stream_seek (GSeekable *seekable, return FALSE; } - if (absolute < 0 || absolute > priv->len) + if (absolute < 0 || (gsize) absolute > priv->len) { g_set_error_literal (error, G_IO_ERROR,