summaryrefslogtreecommitdiff
path: root/gio/glocalfileiostream.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2017-11-22 00:00:39 -0800
committerPhilip Withnall <withnall@endlessm.com>2017-12-04 11:42:58 +0000
commitf44472e7157e7a09876b241a629da8597eee33b5 (patch)
tree84c1c18de51df32f79d78e74a4a11a10f67efbb9 /gio/glocalfileiostream.c
parentc26aab36db18ee31f3a815f4e843b598a904095f (diff)
downloadglib-f44472e7157e7a09876b241a629da8597eee33b5.tar.gz
gobject: fix typecasts via g_object_ref
Now that g_object_ref() propagates the parameter type to the return value, we need to cast to ensure the result is warning free. https://bugzilla.gnome.org/show_bug.cgi?id=790697
Diffstat (limited to 'gio/glocalfileiostream.c')
-rw-r--r--gio/glocalfileiostream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/glocalfileiostream.c b/gio/glocalfileiostream.c
index 30e68488e..779137fb8 100644
--- a/gio/glocalfileiostream.c
+++ b/gio/glocalfileiostream.c
@@ -57,7 +57,7 @@ _g_local_file_io_stream_new (GLocalFileOutputStream *output_stream)
int fd;
stream = g_object_new (G_TYPE_LOCAL_FILE_IO_STREAM, NULL);
- stream->output_stream = g_object_ref (output_stream);
+ stream->output_stream = g_object_ref (G_OUTPUT_STREAM (output_stream));
_g_local_file_output_stream_set_do_close (output_stream, FALSE);
fd = _g_local_file_output_stream_get_fd (output_stream);
stream->input_stream = (GInputStream *)_g_local_file_input_stream_new (fd);