mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-17 19:21:56 +00:00
Fix NSMethodSignature generating nonsense values when it encounters a type encoding including blocks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
53c817c4f6
commit
30b7333911
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
|
|||
case _C_ID:
|
||||
info->size = sizeof(id);
|
||||
info->align = __alignof__(id);
|
||||
/* Blocks are encoded as @? */
|
||||
if (*(typePtr) == '?')
|
||||
{
|
||||
typePtr++;
|
||||
}
|
||||
break;
|
||||
|
||||
case _C_CLASS:
|
||||
|
|
Loading…
Reference in a new issue