From 2ee54ee5a615f18c178e36fc075b2c2502a3b97e Mon Sep 17 00:00:00 2001 From: jbettis Date: Wed, 12 Apr 2006 19:43:49 +0000 Subject: [PATCH] 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 --- Source/GSFFCallInvocation.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/GSFFCallInvocation.m b/Source/GSFFCallInvocation.m index 27580414c..b6785ead0 100644 --- a/Source/GSFFCallInvocation.m +++ b/Source/GSFFCallInvocation.m @@ -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;