From fe9689e5f22ef327f2f8ddf9c6f769caf9ebc144 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 13 Sep 2020 16:47:15 +0200 Subject: [PATCH] Fix Android Studio warning --- DroidFishApp/src/main/cpp/nativeutil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DroidFishApp/src/main/cpp/nativeutil.cpp b/DroidFishApp/src/main/cpp/nativeutil.cpp index 02d967d..4aa54e4 100644 --- a/DroidFishApp/src/main/cpp/nativeutil.cpp +++ b/DroidFishApp/src/main/cpp/nativeutil.cpp @@ -32,10 +32,10 @@ extern "C" JNIEXPORT jboolean JNICALL Java_org_petero_droidfish_engine_EngineUti (JNIEnv *env, jclass, jstring jExePath) { const char* exePath = env->GetStringUTFChars(jExePath, NULL); if (!exePath) - return false; + return static_cast(false); bool ret = chmod(exePath, 0744) == 0; env->ReleaseStringUTFChars(jExePath, exePath); - return ret; + return static_cast(ret); } /*