summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-01-24 14:57:09 +0000
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-01-24 14:59:24 +0000
commit2c99e62bcf8cf4ab0ddcf6f50641076a77634b5a (patch)
treec78b2628719338114b6d35717b42bb6a12d9e927
parent62663e9983186ad6ea63f2cdd9bd431f7c1b1630 (diff)
downloadtelepathy-glib-2c99e62bcf8cf4ab0ddcf6f50641076a77634b5a.tar.gz
Add extra cast of guchar to guint when using GUINT_TO_POINTER
This is a workaround for glib bug #661546
-rw-r--r--telepathy-glib/gnio-util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/telepathy-glib/gnio-util.c b/telepathy-glib/gnio-util.c
index cdf252735..8831bb3a8 100644
--- a/telepathy-glib/gnio-util.c
+++ b/telepathy-glib/gnio-util.c
@@ -414,7 +414,10 @@ tp_unix_connection_send_credentials_with_byte_async (
res = g_simple_async_result_new (G_OBJECT (connection), callback, user_data,
tp_unix_connection_send_credentials_with_byte_async);
- g_simple_async_result_set_op_res_gpointer (res, GUINT_TO_POINTER (byte), NULL);
+
+ /* Extra casting to guint to work around GNOME#661546 for GLib < 2.32 */
+ g_simple_async_result_set_op_res_gpointer (res,
+ GUINT_TO_POINTER ((guint) byte), NULL);
g_simple_async_result_run_in_thread (res,
send_credentials_with_byte_async_thread, G_PRIORITY_DEFAULT, cancellable);