Revision
1158
Author
lsansonetti@apple.com
Date
2009-03-25 20:21:33 -0700 (Wed, 25 Mar 2009)

Log Message

fixed empty symbols

Modified Paths

Diff

Modified: MacRuby/branches/experimental/string.c (1157 => 1158)


--- MacRuby/branches/experimental/string.c	2009-03-26 03:18:03 UTC (rev 1157)
+++ MacRuby/branches/experimental/string.c	2009-03-26 03:21:33 UTC (rev 1158)
@@ -4926,7 +4926,9 @@
 static VALUE
 sym_inspect(VALUE sym, SEL sel)
 {
-    assert(RSTRING_LEN(sym) > 0);
+    if (RSTRING_LEN(sym) == 0) {
+	return rb_str_new2(":\"\"");
+    }
 
     CFCharacterSetRef letters =
 	CFCharacterSetGetPredefined(kCFCharacterSetLetter);