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.
This commit is contained in:
Allison Lortie 2016-06-23 11:47:30 -04:00
parent 8e21b9e966
commit 9bb2499c9c

View File

@ -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);