mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user