зеркало из https://github.com/mozilla/gecko-dev.git
Fix 10061: xptcall not right on irix. patch by Robert Low (rob@adacel.com.au). r=jband sr=blizzard
This commit is contained in:
Родитель
b1ebf176a1
Коммит
8abb06b8eb
|
@ -106,15 +106,16 @@ invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount,
|
|||
break;
|
||||
case nsXPTType::T_FLOAT:
|
||||
if (i < N_ARG_REGS)
|
||||
((double*)regs)[i] = s->val.f;
|
||||
// Place a float in least significant bytes.
|
||||
*(float*)(((char*)®s[i+1]) - sizeof(float)) = s->val.f;
|
||||
else
|
||||
*((double*)d++) = s->val.f;
|
||||
*(float*)d++ = s->val.f;
|
||||
break;
|
||||
case nsXPTType::T_DOUBLE:
|
||||
if (i < N_ARG_REGS)
|
||||
((double*)regs)[i] = s->val.d;
|
||||
*(double*)®s[i] = s->val.d;
|
||||
else
|
||||
*((double*)d++) = s->val.d;
|
||||
*(double*)d++ = s->val.d;
|
||||
break;
|
||||
case nsXPTType::T_BOOL:
|
||||
if (i < N_ARG_REGS)
|
||||
|
|
Загрузка…
Ссылка в новой задаче