diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c index ea7d2d4daf..182d42dc1a 100644 --- a/vm_method.c +++ b/vm_method.c @@ -518,7 +518,7 @@ method_definition_reset(const rb_method_entry_t *me) { rb_method_definition_t *def = me->def; - switch(def->type) { + switch (def->type) { case VM_METHOD_TYPE_ISEQ: RB_OBJ_WRITTEN(me, Qundef, def->body.iseq.iseqptr); RB_OBJ_WRITTEN(me, Qundef, def->body.iseq.cref); @@ -2048,7 +2048,8 @@ set_method_visibility(VALUE self, int argc, const VALUE *argv, rb_method_visibil for (j = 0; j < RARRAY_LEN(v); j++) { check_and_export_method(self, RARRAY_AREF(v, j), visi); } - } else { + } + else { for (i = 0; i < argc; i++) { check_and_export_method(self, argv[i], visi); } |