mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 04:15:49 +01:00
Fix signedness warning in gio/gbufferedinputstream.c:g_buffered_input_stream_seek()
gio/gbufferedinputstream.c: In function ‘g_buffered_input_stream_seek’: gio/gbufferedinputstream.c:899:18: error: comparison of integer expressions of different signedness: ‘goffset’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’} 899 | if (offset <= priv->end - priv->pos && offset >= -priv->pos) | ^~ gio/gbufferedinputstream.c:899:53: error: comparison of integer expressions of different signedness: ‘goffset’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’} 899 | if (offset <= priv->end - priv->pos && offset >= -priv->pos) | ^~
This commit is contained in:
parent
ebb3427f22
commit
18097c8acb
@ -896,7 +896,8 @@ g_buffered_input_stream_seek (GSeekable *seekable,
|
|||||||
|
|
||||||
if (type == G_SEEK_CUR)
|
if (type == G_SEEK_CUR)
|
||||||
{
|
{
|
||||||
if (offset <= priv->end - priv->pos && offset >= -priv->pos)
|
if (offset <= (goffset) (priv->end - priv->pos) &&
|
||||||
|
offset >= (goffset) -priv->pos)
|
||||||
{
|
{
|
||||||
priv->pos += offset;
|
priv->pos += offset;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user