diff --git a/Test/CMakeLists.txt b/Test/CMakeLists.txt index 8e253ae..caafefe 100644 --- a/Test/CMakeLists.txt +++ b/Test/CMakeLists.txt @@ -26,6 +26,7 @@ set(TESTS WeakReferences_arc.m objc_msgSend.m msgInterpose.m + MethodArguments.m ) # Function for adding a test. This takes the name of the test and the list of diff --git a/encoding2.c b/encoding2.c index f4c7b25..1bcdb89 100644 --- a/encoding2.c +++ b/encoding2.c @@ -393,7 +393,7 @@ void method_getArgumentType(Method method, size_t dst_len) { if (NULL == method) { return; } - const char *types = findParameterStart(method->types, index); + const char *types = findParameterStart(method->types, index + 1); if (NULL == types) { strncpy(dst, "", dst_len);