summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-05-21 12:35:38 +0300
committerOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-05-21 12:44:50 +0300
commitb716afc8a70030a3723724de78ce270002cca4d9 (patch)
treea586c9f17d6c6399baa81d3e5ad11a96bdd00500
parentde91c969a7cb0c325474c343189afe2182454f45 (diff)
downloadneardal-b716afc8a70030a3723724de78ce270002cca4d9.tar.gz
neardal-b716afc8a70030a3723724de78ce270002cca4d9.tar.bz2
neardal-b716afc8a70030a3723724de78ce270002cca4d9.zip
Fix pointer casting.
-rw-r--r--lib/neardal_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/neardal_tools.c b/lib/neardal_tools.c
index 2efc5df..85697d0 100644
--- a/lib/neardal_tools.c
+++ b/lib/neardal_tools.c
@@ -106,7 +106,7 @@ errorCode_t neardal_tools_prv_add_dict_entry(GVariantBuilder *builder
tmp = g_variant_new_string(value);
break;
case G_TYPE_UINT:
- tmp = g_variant_new_uint32((guint32) value);
+ tmp = g_variant_new_uint32(GPOINTER_TO_UINT(value));
break;
default:
/* if valueSize > 0, consider value as byte array