Bug 1170859- MIPS64: Fix copy u32 type arg to argument register. r=froydnj

This commit is contained in:
Heiher 2015-06-02 18:49:00 -04:00
parent a881708c55
commit dcf2b9d940

View File

@ -77,7 +77,9 @@ invoke_copy_to_stack(uint64_t* d, uint32_t paramCount,
break;
case nsXPTType::T_U32:
if (i < N_ARG_REGS)
regs[i] = s->val.u32;
// 32-bit values need to be sign-extended
// in register, so use the signed value.
regs[i] = s->val.i32;
else
*d++ = s->val.u32;
break;