Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d30a0e6c authored by Joshua's avatar Joshua
Browse files

PowerManagerService: Fix arm64 build

Add static_cast<int64_t> for 64bit compatiblity

Change-Id: I49e018773d8e54a30b57a05093bcfd692db9d2ca
parent 89c10fbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ static void nativeCpuBoost(JNIEnv *env, jobject clazz, jint duration) {
static void nativeSetPowerProfile(JNIEnv *env, jobject clazz, jint profile) {
    // Tell the Power HAL to select a power profile
    if (gPowerModule && gPowerModule->powerHint) {
        gPowerModule->powerHint(gPowerModule, POWER_HINT_SET_PROFILE, (void *) profile);
        gPowerModule->powerHint(gPowerModule, POWER_HINT_SET_PROFILE, (void *)(static_cast<int64_t>(profile)));
    }
}