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()))