Fix 64bit build error 79/314379/1
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 11 Jul 2024 05:28:48 +0000 (14:28 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 11 Jul 2024 05:28:48 +0000 (14:28 +0900)
Change-Id: Ib993edc35a5d9ab1f71f7f4e31e74da9d13ab717

src/asp-advert.cpp

index 53ce92d5d5ce0122224e425ee00065249d5b11b7..6671b74c7fb098dc59b412cc629c7ba56a7f458e 100644 (file)
@@ -4,6 +4,8 @@
 #include "asp-log.h"
 #include "asp-utils.h"
 
+#include <stdint.h>
+
 static __thread GList *asp_adverts = NULL;
 
 AspAdvert::AspAdvert()
@@ -13,7 +15,7 @@ AspAdvert::AspAdvert()
        status = 0;
        role = 1;
        service_info_map = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
-       adv_id = (unsigned int)this & 0xffffffff;
+       adv_id = (uintptr_t)this & 0xffffffff;
        instance_name = NULL;
        serivce_name = NULL;
        service_type = NULL;