diff --git a/runtime.c b/runtime.c index 82eecaf..e014f82 100644 --- a/runtime.c +++ b/runtime.c @@ -439,7 +439,7 @@ BOOL class_respondsToSelector(Class cls, SEL sel) { /* Warning the __objc_responds_to() function expects an id argument and - * dereferences the initial ivar (the 'isa' pointer) to fidn the class. + * dereferences the initial ivar (the 'isa' pointer) to find the class. */ return __objc_responds_to((id)&cls, sel); } diff --git a/sendmsg2.c b/sendmsg2.c index 6a9c88c..52a946d 100644 --- a/sendmsg2.c +++ b/sendmsg2.c @@ -47,8 +47,9 @@ Slot_t objc_msg_lookup_internal(id *receiver, SEL selector, id sender) { // Check again incase another thread updated the dtable while we // weren't looking - result = sarray_get_safe((*receiver)->class_pointer->dtable, - (sidx)selector->sel_id); + result = + sarray_get_safe(dtable_for_class((*receiver)->class_pointer), + (sidx)selector->sel_id); } if (0 == result) {