Revision
3774
Author
martinlagardette@apple.com
Date
2010-03-16 15:41:08 -0700 (Tue, 16 Mar 2010)

Log Message

Make sure #to_enum verify param is a symbol

 - Fixes 7686649

Modified Paths

Diff

Modified: MacRuby/trunk/enumerator.c (3773 => 3774)


--- MacRuby/trunk/enumerator.c	2010-03-16 22:04:35 UTC (rev 3773)
+++ MacRuby/trunk/enumerator.c	2010-03-16 22:41:08 UTC (rev 3774)
@@ -83,7 +83,7 @@
 	meth = *argv++;
     }
 
-    ID meth_id = SYM2ID(meth);
+    ID meth_id = rb_to_id(meth);
     SEL enum_sel;
     if (argc > 0) {
 	char buf[100];