Bug 652571 - xptstubs on unix x86_64 does not pass float correctly. r=espindola

This commit is contained in:
Mook 2011-09-23 14:50:26 -07:00
parent 6171ee4207
commit e0e76eec52
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
// The value in %xmm register is already prepared to
// be retrieved as a float. Therefore, we pass the
// value verbatim, as a double without conversion.
dp->val.d = *(double*) ap++;
dp->val.d = fpregs[nr_fpr++];
else
dp->val.f = *(float*) ap++;
continue;

View File

@ -114,7 +114,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
// The value in %xmm register is already prepared to
// be retrieved as a float. Therefore, we pass the
// value verbatim, as a double without conversion.
dp->val.d = *(double*) ap++;
dp->val.d = fpregs[nr_fpr++];
else
dp->val.f = *(float*) ap++;
continue;

View File

@ -114,7 +114,7 @@ PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
// The value in %xmm register is already prepared to
// be retrieved as a float. Therefore, we pass the
// value verbatim, as a double without conversion.
dp->val.d = *(double*) ap++;
dp->val.d = fpregs[nr_fpr++];
else
dp->val.f = *(float*) ap++;
continue;