Skip to content

Commit

Permalink
Add symbol type check for Module#undef_method
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 4, 2016
1 parent 5c651d6 commit ac561a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ac561a5

Please sign in to comment.