diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-01-24 14:57:09 +0000 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-01-24 14:59:24 +0000 |
commit | 2c99e62bcf8cf4ab0ddcf6f50641076a77634b5a (patch) | |
tree | c78b2628719338114b6d35717b42bb6a12d9e927 | |
parent | 62663e9983186ad6ea63f2cdd9bd431f7c1b1630 (diff) | |
download | telepathy-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.c | 5 |
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); |