From b641406c02baaf88bd473609833f6c159541b949 Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Tue, 2 Feb 2016 19:42:02 +0900 Subject: [tizen-device] Fix 64bit build errors Change-Id: I5cd2e5c1b0480272fdc8979a447e67e861b215d1 --- modules/tizen-device/device_extension.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tizen-device/device_extension.cc b/modules/tizen-device/device_extension.cc index 3afef5f..de04c93 100644 --- a/modules/tizen-device/device_extension.cc +++ b/modules/tizen-device/device_extension.cc @@ -126,25 +126,25 @@ void DeviceChangedCallback(device_callback_e type, void* value, void* data) { switch (type) { case DEVICE_CALLBACK_BATTERY_CAPACITY: event["event"] = "battery.capacity"; - event["value"] = reinterpret_cast(value); + event["value"] = *static_cast(value); break; case DEVICE_CALLBACK_BATTERY_LEVEL: event["event"] = "battery.level"; event["value"] = GetBatteryLevelString( - static_cast(reinterpret_cast(value))); + static_cast(*static_cast(value))); break; case DEVICE_CALLBACK_BATTERY_CHARGING: event["event"] = "battery.charging"; - event["value"] = (reinterpret_cast(value) != 0); + event["value"] = (*static_cast(value) != 0); break; case DEVICE_CALLBACK_DISPLAY_STATE: event["event"] = "display.state"; event["value"] = GetDisplayStateString( - static_cast(reinterpret_cast(value))); + static_cast(*static_cast(value))); break; case DEVICE_CALLBACK_FLASH_BRIGHTNESS: event["event"] = "flash.brightness"; - event["value"] = reinterpret_cast(value); + event["value"] = *static_cast(value); break; default: event["event"] = "unknown"; -- cgit v1.2.3