From 9bb2499c9c8be9c401d32fd7930ea0b975678db0 Mon Sep 17 00:00:00 2001 From: Allison Lortie Date: Thu, 23 Jun 2016 11:47:30 -0400 Subject: [PATCH] tests: fix uint64 argument to g_object_set() call 5cea1c861def0251a10cd4de01908aaf3276c72d introduced accessors for 64bit ints to gsettings, at which point the testcases were expanded. Unfortunately, the expanded tests contained a bug: integer constants passed to g_object_set() for a 64-bit property need an up-cast. Add that now. Problem found by Iain Lane. --- gio/tests/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index 86cc85c45..1fbfb9464 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -1182,7 +1182,7 @@ test_simple_binding (void) g_settings_bind (settings, "uint64", obj, "uint64", G_SETTINGS_BIND_DEFAULT); - g_object_set (obj, "uint64", 12345, NULL); + g_object_set (obj, "uint64", (guint64) 12345, NULL); g_assert_cmpuint (g_settings_get_uint64 (settings, "uint64"), ==, 12345); g_settings_set_uint64 (settings, "uint64", 54321);