[Build] Fix for aarch64
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 25 Jun 2015 01:32:13 +0000 (10:32 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 25 Jun 2015 01:32:13 +0000 (10:32 +0900)
Change-Id: I61d04c04eee2d69a0e9fa7e418b527043127359e

src/datacontrol/datacontrol_instance.cc
src/power/power_manager.cc

index 27cee1e2efbce7d43306966bad0ee2ea77adbb1e..c07089085d309b9d83f2c2d5c2273e2d32fe4a20 100755 (executable)
@@ -322,7 +322,7 @@ static void SQLSelectResponseCallback(int requestId, data_control_h handle,
 }
 
 static void SQLInsertResponseCallback(int requestId, data_control_h handle,
-                                      int64_t inserted_row_id,
+                                      long long int inserted_row_id,
                                       bool providerResult,
                                       const char *error, void *user_data) {
   LoggerD("Enter");
index 4e82ceaf40216f3f6b26e159194e9c2068b9b757..fb91c1be051db3a3cfe5b5ca85858a84705bd30c 100755 (executable)
@@ -97,7 +97,7 @@ void PowerManager::OnPlatformStateChangedCB(device_callback_e type, void* value,
     LoggerE("type is not DISPLAY_STATE");
     return;
   }
-  display_state_e state = static_cast<display_state_e>(reinterpret_cast<int>(value));
+  display_state_e state = static_cast<display_state_e>(*static_cast<int*>(value));
   PowerState current = POWER_STATE_SCREEN_OFF;
   switch (state) {
     case DISPLAY_STATE_NORMAL :