Bug 310477 - Fix call method return types. Not part of default bulid.

This commit is contained in:
pedemont%us.ibm.com 2005-10-28 02:06:58 +00:00
Родитель c385b2e9fc
Коммит 75c5a6f9e7
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -460,24 +460,29 @@ nsJavaXPTCStub::CallMethod(PRUint16 aMethodIndex,
switch (retvalInfo->GetType().TagPart())
{
case nsXPTType::T_I8:
case nsXPTType::T_U8:
retval.b = env->CallByteMethodA(javaObject, mid, java_params);
break;
case nsXPTType::T_I16:
case nsXPTType::T_U16:
case nsXPTType::T_U8:
retval.s = env->CallShortMethodA(javaObject, mid, java_params);
break;
case nsXPTType::T_I32:
case nsXPTType::T_U32:
case nsXPTType::T_U16:
retval.i = env->CallIntMethodA(javaObject, mid, java_params);
break;
case nsXPTType::T_I64:
case nsXPTType::T_U32:
retval.i = env->CallLongMethodA(javaObject, mid, java_params);
break;
case nsXPTType::T_FLOAT:
retval.f = env->CallFloatMethodA(javaObject, mid, java_params);
break;
case nsXPTType::T_U64:
case nsXPTType::T_DOUBLE:
retval.d = env->CallDoubleMethodA(javaObject, mid, java_params);
break;