aboutsummaryrefslogtreecommitdiff
path: root/libobjc/protocols.c
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/protocols.c')
-rw-r--r--libobjc/protocols.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/protocols.c b/libobjc/protocols.c
index bc714ae..d23d42d 100644
--- a/libobjc/protocols.c
+++ b/libobjc/protocols.c
@@ -383,7 +383,7 @@ struct objc_method_description protocol_getMethodDescription (Protocol *protocol
{
for (i = 0; i < methods->count; i++)
{
- if (strcmp ((char*)(methods->list[i].name), selector_name) == 0)
+ if (strcmp (sel_getName (methods->list[i].name), selector_name) == 0)
return methods->list[i];
}
}