mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
Fix Android Studio warning
This commit is contained in:
parent
105ae49b01
commit
fe9689e5f2
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user