Fix: crash when calling a function with the long type return value (#3332)

Fix problem: crash when calling a function with args that has a return
value of long type.
This commit is contained in:
Zhexuan Chen
2021-03-19 10:36:14 +08:00
committed by GitHub
parent b9627cbfa6
commit 63d80f6b27
@@ -238,7 +238,7 @@ bool JavaScriptJavaBridge::CallInfo::executeWithArgs(jvalue *args) {
break;
case JavaScriptJavaBridge::ValueType::LONG:
m_ret.longValue = m_env->CallStaticIntMethodA(m_classID, m_methodID, args);
m_ret.longValue = m_env->CallStaticLongMethodA(m_classID, m_methodID, args);
break;
case JavaScriptJavaBridge::ValueType::FLOAT: