summaryrefslogtreecommitdiff
blob: fc74f44c07b1667fe97cd3440e0feed0684c2966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 2e1bd073426b42a7e207314f1cef1402509ce12a Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Mon, 6 Mar 2017 06:28:32 +0100
Subject: 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 file changed, 1 insertion(+), 1 deletion(-)

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); \
-- 
cgit v0.12