[macruby-changes] [3580] MacRuby/branches/icu/string.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 19 15:08:37 PST 2010


Revision: 3580
          http://trac.macosforge.org/projects/ruby/changeset/3580
Author:   vincent.isambart at gmail.com
Date:     2010-02-19 15:08:37 -0800 (Fri, 19 Feb 2010)
Log Message:
-----------
small fixes in String

Modified Paths:
--------------
    MacRuby/branches/icu/string.c

Modified: MacRuby/branches/icu/string.c
===================================================================
--- MacRuby/branches/icu/string.c	2010-02-19 10:39:59 UTC (rev 3579)
+++ MacRuby/branches/icu/string.c	2010-02-19 23:08:37 UTC (rev 3580)
@@ -266,7 +266,7 @@
 static void
 str_replace(rb_str_t *self, VALUE arg)
 {
-    if (IS_RSTR(arg)) {
+    if (!SPECIAL_CONST_P(arg) && IS_RSTR(arg)) {
 	str_replace_with_string(self, RSTR(arg));
     }
     else {
@@ -1110,7 +1110,7 @@
 static rb_str_t *
 str_need_string(VALUE str)
 {
-    if (IS_RSTR(str)) {
+    if (!SPECIAL_CONST_P(str) && IS_RSTR(str)) {
 	return (rb_str_t *)str;
     }
     if (TYPE(str) != T_STRING) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100219/276e8644/attachment.html>


More information about the macruby-changes mailing list