[macruby-changes] [717] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 7 12:18:04 PST 2008


Revision: 717
          http://trac.macosforge.org/projects/ruby/changeset/717
Author:   lsansonetti at apple.com
Date:     2008-11-07 12:18:02 -0800 (Fri, 07 Nov 2008)
Log Message:
-----------
fixed Symbol#inspect (thanks Vincent for reporting it)

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2008-11-07 19:27:22 UTC (rev 716)
+++ MacRuby/trunk/string.c	2008-11-07 20:18:02 UTC (rev 717)
@@ -891,7 +891,9 @@
     CFDataRef data;
     long str2len;
 
-    Check_Type(str2, T_STRING);
+    if (TYPE(str2) != T_SYMBOL) {
+	Check_Type(str2, T_STRING);
+    }
 
     str2len = RSTRING_LEN(str2);
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081107/e9b508e2/attachment-0001.html>


More information about the macruby-changes mailing list