summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--vm_eval.c2
-rw-r--r--vm_insnhelper.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f4f14f0f40..752dfdb9a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -79,7 +79,7 @@ Sun May 31 03:36:42 2015 Koichi Sasada <ko1@atdot.net>
Now, inter class/method alias creates new method entry
VM_METHOD_TYPE_ALIAS, which has an original method entry.
- * vm_insnhelper.c (find_defiend_class_by_owner): added.
+ * vm_insnhelper.c (find_defined_class_by_owner): added.
Search corresponding defined_class from owner class/module.
* vm_method.c (rb_method_entry_get_without_cache): return me->klass
diff --git a/vm_eval.c b/vm_eval.c
index 947982fce4..9f046af2b8 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -220,7 +220,7 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
case VM_METHOD_TYPE_ALIAS:
{
ci->me = ci->me->def->body.alias.original_me;
- ci->defined_class = find_defiend_class_by_owner(ci->defined_class, ci->me->klass);
+ ci->defined_class = find_defined_class_by_owner(ci->defined_class, ci->me->klass);
goto again;
}
case VM_METHOD_TYPE_MISSING:
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 058f31587d..99308a8a0a 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1702,7 +1702,7 @@ current_method_entry(rb_thread_t *th, rb_control_frame_t *cfp)
}
static VALUE
-find_defiend_class_by_owner(VALUE current_class, VALUE target_owner)
+find_defined_class_by_owner(VALUE current_class, VALUE target_owner)
{
VALUE klass = current_class;
@@ -1793,7 +1793,7 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci)
}
case VM_METHOD_TYPE_ALIAS: {
ci->me = ci->me->def->body.alias.original_me;
- ci->defined_class = find_defiend_class_by_owner(ci->defined_class, ci->me->klass /* owner */);
+ ci->defined_class = find_defined_class_by_owner(ci->defined_class, ci->me->klass /* owner */);
goto normal_method_dispatch;
}
case VM_METHOD_TYPE_OPTIMIZED:{