Permalink
Browse files

Add symbol type check for Module#undef_method

  • Loading branch information...
matz committed Dec 4, 2016
1 parent 5c651d6 commit ac561a52f583ce154a27622642a37a7a386cbcd9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/class.c
View
@@ -1817,7 +1817,7 @@ mrb_mod_undef(mrb_state *mrb, mrb_value mod)
mrb_get_args(mrb, "*", &argv, &argc);
while (argc--) {
undef_method(mrb, c, mrb_symbol(*argv));
undef_method(mrb, c, to_sym(mrb, *argv));
argv++;
}
return mrb_nil_value();

0 comments on commit ac561a5

Please sign in to comment.