(make_method_call) [__mips__]: Add 4 to offset for float retframe.

Yipes, this may be needed for other architectures too.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@524 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-08-04 15:09:01 +00:00
parent 519fde5fa7
commit 4bdc02ebc9

View file

@ -398,8 +398,19 @@ make_method_call(const char *forward_type,
addition to the FLT_AND_DBL_RETFRAME_OFFSET while working
on guileobjc.
Look into this for Distributed Objects. */
/* xxx Yipes! Perhaps this change is needed on other
architectures too. */
#if __mips__
if (*tmptype == _C_FLT)
(*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET + 4,
tmptype, flags);
else
(*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET,
tmptype, flags);
#else
(*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET,
tmptype, flags);
#endif
}
else /* Among other types, _C_CHARPTR is handled here */
{