projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.67.4
[platform/upstream/glib.git]
/
gio
/
gbufferedinputstream.c
diff --git
a/gio/gbufferedinputstream.c
b/gio/gbufferedinputstream.c
index
b0e609c
..
14495c4
100644
(file)
--- a/
gio/gbufferedinputstream.c
+++ b/
gio/gbufferedinputstream.c
@@
-896,7
+896,8
@@
g_buffered_input_stream_seek (GSeekable *seekable,
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;
return TRUE;