aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index edaec83f30..7cdb7836c0 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1351,12 +1351,12 @@ rb_alias(VALUE klass, ID name, ID def)
rb_method_entry_t *new_orig_me;
rb_method_definition_t *def;
- if (RB_TYPE_P(defined_class, T_ICLASS)) {
+ if (RB_TYPE_P(defined_class, T_ICLASS)) {
defined_class = real_owner = RBASIC_CLASS(defined_class);
}
else {
real_owner = defined_class;
- }
+ }
/* make ne me */
new_orig_me = ALLOC(rb_method_entry_t);