From: saerome.kim Date: Thu, 24 Oct 2019 22:40:50 +0000 (+0900) Subject: Fix a build error for 64-bit machine X-Git-Tag: submit/tizen/20191030.083316~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fb8f461193da137b389f8ca2866008744f973b2;p=platform%2Fcore%2Fapi%2Fuser-awareness.git Fix a build error for 64-bit machine - Problem: build error during test-hub - Cause: The reason for the error is that the compiler suspects we might be trying to round-trip a pointer through int and back. This was common practice before the advent of 64-bit machines and it is not safe or reasonable. - Solution: replace 'int' type-casting with 'intptr_t'. Change-Id: I0fe0f8c4e8ebf6af45eb714f8284b7bc9371d1f8 Signed-off-by: saerome.kim --- diff --git a/test/uat-init.c b/test/uat-init.c index ea42041..2e58539 100644 --- a/test/uat-init.c +++ b/test/uat-init.c @@ -46,7 +46,7 @@ static void __user_detected_foreach_sensors(gpointer data, GSList *l = 0; int info_count = 0; GSList *values = NULL; - int type = (int)user_data; + int type = (intptr_t)user_data; unsigned long long timestamp; char buf[MENU_DATA_SIZE] = {0, }; char final_buf[MENU_DATA_SIZE * 4] = {0, };