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:
Jeremy Bettis 2006-04-12 19:43:49 +00:00
parent 234cf44084
commit afcdd8bca1

View file

@ -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;