Fix signedness warning in gio/gmemoryinputstream.c:g_memory_input_stream_seek()

gio/gmemoryinputstream.c: In function ‘g_memory_input_stream_seek’:
gio/gmemoryinputstream.c:479:32: error: comparison of integer expressions of different signedness: ‘goffset’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’}
  479 |   if (absolute < 0 || absolute > priv->len)
      |                                ^
This commit is contained in:
Emmanuel Fleury 2020-11-17 01:01:41 +01:00
parent 1061a22af1
commit de5e43dc95

View File

@ -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,