mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
GSFFCallInvocation.m: If the returning context is expecting a void* but we have a different return type just cast it. This normally is because the method was not declared and has defaulted to returning id.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22781 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
234cf44084
commit
afcdd8bca1
1 changed files with 3 additions and 0 deletions
|
@ -979,6 +979,9 @@ GSInvocationCallback (void *callback_data, va_alist args)
|
|||
#undef CASE_TYPE
|
||||
#define CASE_TYPE(_T, _V, _F) \
|
||||
case _T: \
|
||||
if (typeinfo->type == __VAvoidp) \
|
||||
va_return_ptr(args, void *, *(void **)retval); \
|
||||
else \
|
||||
_F(args, *(_V *)retval); \
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue