From eb0f28539ceccb80f2fb04a29558d6ea3bdd9e4b Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Fri, 14 Dec 2018 13:29:04 +0100 Subject: [PATCH] fix ambigious cast --- src/mvvmcore/androidsettingsaccessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mvvmcore/androidsettingsaccessor.cpp b/src/mvvmcore/androidsettingsaccessor.cpp index 07be8f4..a4f56c5 100644 --- a/src/mvvmcore/androidsettingsaccessor.cpp +++ b/src/mvvmcore/androidsettingsaccessor.cpp @@ -206,7 +206,7 @@ QVariant AndroidSettingsAccessorPrivate::convertFromJava(const QAndroidJniObject if(env->IsInstanceOf(object.object(), intClass.object())) return object.callMethod("intValue","()I"); else if(env->IsInstanceOf(object.object(), longClass.object())) - return object.callMethod("longValue","()J"); + return static_cast(object.callMethod("longValue","()J")); else if(env->IsInstanceOf(object.object(), floatClass.object())) return object.callMethod("floatValue","()F"); else if(env->IsInstanceOf(object.object(), boolClass.object()))