[libgdata] tests: Fix setting properties on i686
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tests: Fix setting properties on i686
- Date: Mon, 6 Mar 2017 09:14:38 +0000 (UTC)
commit 2e1bd073426b42a7e207314f1cef1402509ce12a
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Mon Mar 6 06:28:32 2017 +0100
tests: Fix setting properties on i686
Without the cast, an integer literal will have to wrong size for a
64-bit integer parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=779641
gdata/tests/general.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index 6b41f25..75232de 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -1309,7 +1309,7 @@ test_query_properties (void)
g_assert_##cmptype (gdata_query_get_##name_underscores (query), ==, new_val); \
\
notification_received = FALSE; \
- g_object_set (query, name_hyphens, new_val2, NULL); \
+ g_object_set (query, name_hyphens, (val_type) new_val2, NULL); \
g_assert (notification_received == TRUE); \
\
g_assert_##cmptype (gdata_query_get_##name_underscores (query), ==, new_val2); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]