From 753494a25e35bd1f2413bd741f73d60226fcfd14 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 6 Nov 2012 15:04:47 -0500 Subject: [PATCH] tests/buffered-input-stream: Fix size of parameter passed buffer-size is guint, but the public API is gsize for some reason. Tested-By: gustavold@linux.vnet.ibm.com https://bugzilla.gnome.org/show_bug.cgi?id=687801 --- gio/tests/buffered-input-stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gio/tests/buffered-input-stream.c b/gio/tests/buffered-input-stream.c index c94ca10..ca96022 100644 --- a/gio/tests/buffered-input-stream.c +++ b/gio/tests/buffered-input-stream.c @@ -88,6 +88,7 @@ test_set_buffer_size (void) { GInputStream *base; GInputStream *in; + guint bufsize_prop; gsize size, bufsize; base = g_memory_input_stream_new_from_data ("abcdefghijk", -1, NULL); @@ -105,8 +106,8 @@ test_set_buffer_size (void) g_buffered_input_stream_set_buffer_size (G_BUFFERED_INPUT_STREAM (in), 2); size = g_buffered_input_stream_get_buffer_size (G_BUFFERED_INPUT_STREAM (in)); g_assert_cmpint (size, ==, bufsize); - g_object_get (in, "buffer-size", &size, NULL); - g_assert_cmpint (size, ==, bufsize); + g_object_get (in, "buffer-size", &bufsize_prop, NULL); + g_assert_cmpint (bufsize_prop, ==, bufsize); g_object_unref (in); -- 2.7.4