From abb0d1e931737217d40a23179e1d761ec75ac5f0 Mon Sep 17 00:00:00 2001 From: Niels Grewe Date: Sun, 6 Sep 2015 20:13:05 +0200 Subject: [PATCH] Fix returning argument types from methods. --- encoding2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding2.c b/encoding2.c index 439c5ac..f4c7b25 100644 --- a/encoding2.c +++ b/encoding2.c @@ -433,7 +433,7 @@ unsigned method_get_number_of_arguments(struct objc_method *method) char* method_copyArgumentType(Method method, unsigned int index) { if (NULL == method) { return NULL; } - const char *types = findParameterStart(method->types, index); + const char *types = findParameterStart(method->types, index + 1); if (NULL == types) { return NULL;