mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* Source/NSInvocation.m (-getReturnValue:, -setReturnValue:): Only
muck with size of buffer if we're using (deprecated) mframe. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21377 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0b3c0a67e4
commit
750130f0e6
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-28 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSInvocation.m (-getReturnValue:, -setReturnValue:): Only
|
||||
muck with size of buffer if we're using (deprecated) mframe.
|
||||
|
||||
2005-06-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSKeyedArchiver.m: Fix typo ... superClass should be
|
||||
|
|
|
@ -294,9 +294,14 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
if (*_info[0].type != _C_VOID)
|
||||
{
|
||||
int length = _info[0].size;
|
||||
#if !defined(USE_LIBFFI) && !defined(USE_FFCALL)
|
||||
/* NOTE: This won't work unless -[NSMethodSignature methodReturnLength]
|
||||
is also changed, but since mframe is depreciated, this should all
|
||||
be removed in the near future anyway... */
|
||||
#if WORDS_BIGENDIAN
|
||||
if (length < sizeof(void*))
|
||||
length = sizeof(void*);
|
||||
#endif
|
||||
#endif
|
||||
memcpy(buffer, _retval, length);
|
||||
}
|
||||
|
@ -402,9 +407,14 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
{
|
||||
int length = _info[0].size;
|
||||
|
||||
#if !defined(USE_LIBFFI) && !defined(USE_FFCALL)
|
||||
/* NOTE: This won't work unless -[NSMethodSignature methodReturnLength]
|
||||
is also changed, but since mframe is depreciated, this should all
|
||||
be removed in the near future anyway... */
|
||||
#if WORDS_BIGENDIAN
|
||||
if (length < sizeof(void*))
|
||||
length = sizeof(void*);
|
||||
#endif
|
||||
#endif
|
||||
memcpy(_retval, buffer, length);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue