mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 09:57:52 +02:00
tests: fix uint64 argument to g_object_set() call
5cea1c861d
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user