summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-01 15:00:17 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-01 15:00:17 +0000
commitabe5b048bd125191723dc8f7d7afdf42ea10d225 (patch)
treec442fa1f3ec30f51e3ac9be6aa6e13979e52f95b
parentec38e0ead294225db415930bf5fe72e3b6a12c9f (diff)
fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 f4f14f0..752dfdb 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 947982f..9f046af 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 058f315..99308a8 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:{