From 3656f8d1cc47b3062c33dd181076bf280b43213e Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Wed, 28 Sep 2016 17:47:58 +0900 Subject: [PATCH] Fix 64bit build error Signed-off-by: Jihoon Jung Change-Id: I1004cac70d75711eb3b72b708761c26e5746af17 --- src/SEService.cpp | 2 +- src/Session.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SEService.cpp b/src/SEService.cpp index d810f44..2c9baa4 100755 --- a/src/SEService.cpp +++ b/src/SEService.cpp @@ -489,7 +489,7 @@ namespace smartcard_service_api SECURE_LOGD("Reader : name [%s], handle [%08x]", name, handle); /* add readers */ - reader = new Reader((void *)this->handle, name, GUINT_TO_POINTER(handle)); + reader = new Reader(GUINT_TO_POINTER(this->handle), name, GUINT_TO_POINTER(handle)); if (reader == NULL) { _ERR("alloc failed"); diff --git a/src/Session.cpp b/src/Session.cpp index 412bc6a..75b48a6 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -174,7 +174,7 @@ namespace smartcard_service_api /* create new instance of channel */ channel = new ClientChannel(session->context, session, channel_id, - response, (void *)channel_id); + response, GUINT_TO_POINTER(channel_id)); if (channel != NULL) { session->channels.push_back(channel); } else { @@ -439,7 +439,7 @@ namespace smartcard_service_api /* create new instance of channel */ channel = new ClientChannel(context, this, channel_number, - response, (void *)channel_id); + response, GUINT_TO_POINTER(channel_id)); if (channel != NULL) { channels.push_back(channel); -- 2.34.1