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

Commit 39c6e639 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

android_servers: Fix the duration argument for CPU_BOOST

Clear incompatible pointer conversion errors in 64bit

Change-Id: I4df49249dede5fedc65a4fb1fc06c099a3262065
parent 098fde18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ static void nativeSendPowerHint(JNIEnv *env, jclass clazz, jint hintId, jint dat
static void nativeCpuBoost(JNIEnv *env, jobject clazz, jint duration) {
    // Tell the Power HAL to boost the CPU
    if (gPowerModule && gPowerModule->powerHint) {
        gPowerModule->powerHint(gPowerModule, POWER_HINT_CPU_BOOST, (void *) duration);
        gPowerModule->powerHint(gPowerModule, POWER_HINT_CPU_BOOST, (void *)(static_cast<int64_t>(duration)));
    }
}