Revision
156
Author
lsansonetti@apple.com
Date
2008-04-18 23:21:34 -0700 (Fri, 18 Apr 2008)

Log Message

fixed Hash#inspect

Modified Paths

Diff

Modified: MacRuby/trunk/hash.c (155 => 156)


--- MacRuby/trunk/hash.c	2008-04-19 05:01:46 UTC (rev 155)
+++ MacRuby/trunk/hash.c	2008-04-19 06:21:34 UTC (rev 156)
@@ -1549,16 +1549,20 @@
     VALUE str2;
 
     if (key == Qundef) return ST_CONTINUE;
-    if (RSTRING_LEN(str) > 1) {
+    if (RSTRING_CLEN(str) > 1) {
 	rb_str_cat2(str, ", ");
     }
     str2 = rb_inspect(key);
     rb_str_buf_append(str, str2);
+#if !WITH_OBJC
     OBJ_INFECT(str, str2);
+#endif
     rb_str_buf_cat2(str, "=>");
     str2 = rb_inspect(value);
     rb_str_buf_append(str, str2);
+#if !WITH_OBJC
     OBJ_INFECT(str, str2);
+#endif
 
     return ST_CONTINUE;
 }