Permalink
Browse files

Make sure #to_enum verify param is a symbol

 - Fixes 7686649



git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3774 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 609a380 commit e1960f63e21ce520dc6341c456a0e1d166b207f3 Thibault Martin-Lagardette committed Mar 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 enumerator.c
View
@@ -83,7 +83,7 @@ obj_to_enum(VALUE obj, SEL sel, int argc, VALUE *argv)
meth = *argv++;
}
- ID meth_id = SYM2ID(meth);
+ ID meth_id = rb_to_id(meth);
SEL enum_sel;
if (argc > 0) {
char buf[100];

0 comments on commit e1960f6

Please sign in to comment.