[Fix 64bit Build Error] Correctly type casting unsigned int to pointer using GLIB... 23/70923/1 accepted/tizen/common/20160524.150544 accepted/tizen/ivi/20160524.095223 accepted/tizen/mobile/20160524.095202 accepted/tizen/tv/20160524.095049 accepted/tizen/wearable/20160524.095304 submit/tizen/20160524.015427
authorJihoon Jung <jh8801.jung@samsung.com>
Mon, 23 May 2016 08:39:59 +0000 (17:39 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Mon, 23 May 2016 08:41:17 +0000 (17:41 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I2b5754be8c6570e4d4fc3811753c457ccf851ea2

packaging/capi-network-nfc.spec
src/net_nfc_client_hce.c
src/net_nfc_client_hce_ipc.c
src/net_nfc_client_se.c

index 2047529..3dddec5 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-nfc
 Summary:    A NFC library in Native API
-Version:    0.3.0
+Version:    0.3.1
 Release:    0
 Group:      Network & Connectivity/NFC
 License:    Apache-2.0
index a95b969..770b4dc 100755 (executable)
@@ -65,7 +65,7 @@ static void hce_event_received(GObject *source_object, guint arg_handle,
 
                net_nfc_util_gdbus_variant_to_data_s(arg_apdu, &apdu);
 
-               hce_handler.hce_event_cb((net_nfc_target_handle_h)arg_handle,
+               hce_handler.hce_event_cb((net_nfc_target_handle_h)GUINT_TO_POINTER(arg_handle),
                        (net_nfc_hce_event_t)arg_event, &apdu,
                        hce_handler.hce_data);
 
index 5850a6f..fe1d028 100755 (executable)
@@ -127,7 +127,7 @@ static bool __process_server_message()
                temp.length = data.length - sizeof(net_nfc_hce_data_t);
 
                net_nfc_client_hce_process_received_event(header->type,
-                       (net_nfc_target_handle_h)header->handle, (data_h)&temp);
+                       (net_nfc_target_handle_h)GUINT_TO_POINTER(header->handle), (data_h)&temp);
 
                result = true;
        } else {
@@ -172,7 +172,7 @@ bool net_nfc_server_hce_ipc_send_to_server(int type,
                header = (net_nfc_hce_data_t *)(temp.buffer + sizeof(len));
 
                header->type = type;
-               header->handle = (int)handle;
+               header->handle = GPOINTER_TO_UINT(handle);
 
                if (data != NULL && data->length > 0) {
                        memcpy(header->data, data->buffer, data->length);
index 176670d..afde3f6 100755 (executable)
@@ -120,7 +120,7 @@ static void se_ese_detected(GObject *source_object,
 
                net_nfc_util_gdbus_variant_to_data_s(arg_data, &buffer_data);
 
-               callback((net_nfc_target_handle_h)arg_handle,
+               callback((net_nfc_target_handle_h)GUINT_TO_POINTER(arg_handle),
                        arg_se_type, &buffer_data,
                        se_esedetecthandler.se_ese_detected_data);
 
@@ -314,7 +314,7 @@ static void open_secure_element(GObject *source_object,
                        (net_nfc_se_open_se_cb)func_data->se_callback;
 
                se_callback(result,
-                       (net_nfc_target_handle_h)out_handle,
+                       (net_nfc_target_handle_h)GUINT_TO_POINTER(out_handle),
                        func_data->se_data);
        }