mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
1061a22af1
commit
de5e43dc95
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user