mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-28 03:00:51 +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
e3b63da8ec
commit
2ee54ee5a6
1 changed files with 3 additions and 0 deletions
|
@ -979,6 +979,9 @@ GSInvocationCallback (void *callback_data, va_alist args)
|
||||||
#undef CASE_TYPE
|
#undef CASE_TYPE
|
||||||
#define CASE_TYPE(_T, _V, _F) \
|
#define CASE_TYPE(_T, _V, _F) \
|
||||||
case _T: \
|
case _T: \
|
||||||
|
if (typeinfo->type == __VAvoidp) \
|
||||||
|
va_return_ptr(args, void *, *(void **)retval); \
|
||||||
|
else \
|
||||||
_F(args, *(_V *)retval); \
|
_F(args, *(_V *)retval); \
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue