Modified: MacRuby/trunk/string.c (3783 => 3784)
--- MacRuby/trunk/string.c 2010-03-17 01:59:40 UTC (rev 3783)
+++ MacRuby/trunk/string.c 2010-03-17 08:59:02 UTC (rev 3784)
@@ -831,10 +831,6 @@
if (str->length_in_bytes == 0) {
return;
}
- if (self->length_in_bytes == 0) {
- str_replace_with_string(self, str);
- return;
- }
str_must_have_compatible_encoding(self, str);
str_make_same_format(self, str);
@@ -5520,7 +5516,7 @@
VALUE
rb_str_new_fast(int argc, ...)
{
- VALUE str = (VALUE)str_alloc(rb_cRubyString);
+ VALUE str = rb_str_new(NULL, 0);
if (argc > 0) {
va_list ar;