From: Jihoon Jung Date: Wed, 28 Sep 2016 08:47:58 +0000 (+0900) Subject: Fix 64bit build error X-Git-Tag: submit/tizen/20160928.072505^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3656f8d1cc47b3062c33dd181076bf280b43213e;p=platform%2Fcore%2Fapi%2Fsmartcard.git Fix 64bit build error Signed-off-by: Jihoon Jung Change-Id: I1004cac70d75711eb3b72b708761c26e5746af17 --- 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);