summaryrefslogtreecommitdiff
path: root/libobjc/Protocol.m
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/Protocol.m')
-rw-r--r--libobjc/Protocol.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/Protocol.m b/libobjc/Protocol.m
index 49b7b3a43d4..e8bb9442ac4 100644
--- a/libobjc/Protocol.m
+++ b/libobjc/Protocol.m
@@ -85,7 +85,7 @@ struct objc_method_description_list {
if (instance_methods)
for (i = 0; i < instance_methods->count; i++)
{
- if (!strcmp ((char*)instance_methods->list[i].name, name))
+ if (!strcmp (sel_get_name (instance_methods->list[i].name), name))
return &(instance_methods->list[i]);
}
@@ -113,7 +113,7 @@ struct objc_method_description_list {
if (class_methods)
for (i = 0; i < class_methods->count; i++)
{
- if (!strcmp ((char*)class_methods->list[i].name, name))
+ if (!strcmp (sel_get_name (class_methods->list[i].name), name))
return &(class_methods->list[i]);
}