Fix Android Studio warning

This commit is contained in:
Peter Osterlund 2020-09-13 16:47:15 +02:00
parent 105ae49b01
commit fe9689e5f2

View File

@ -32,10 +32,10 @@ extern "C" JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_engine_EngineUti
(JNIEnv *env, jclass, jstring jExePath) { (JNIEnv *env, jclass, jstring jExePath) {
const char* exePath = env->GetStringUTFChars(jExePath, NULL); const char* exePath = env->GetStringUTFChars(jExePath, NULL);
if (!exePath) if (!exePath)
return false; return static_cast<jboolean>(false);
bool ret = chmod(exePath, 0744) == 0; bool ret = chmod(exePath, 0744) == 0;
env->ReleaseStringUTFChars(jExePath, exePath); env->ReleaseStringUTFChars(jExePath, exePath);
return ret; return static_cast<jboolean>(ret);
} }
/* /*