ruby-changes:31154
From: nobu <ko1@a...>
Date: Thu, 10 Oct 2013 12:13:39 +0900 (JST)
Subject: [ruby-changes:31154] nobu:r43233 (trunk): string.c: use str_duplicate
nobu 2013-10-10 12:13:34 +0900 (Thu, 10 Oct 2013) New Revision: 43233 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43233 Log: string.c: use str_duplicate * string.c (rb_str_resurrect): use str_duplicate(), which does completely same. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 43232) +++ string.c (revision 43233) @@ -1006,7 +1006,7 @@ rb_str_resurrect(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L1006 RUBY_DTRACE_STRING_CREATE(RSTRING_LEN(str), rb_sourcefile(), rb_sourceline()); } - return str_replace(str_alloc(rb_cString), str); + return str_duplicate(rb_cString, str); } /* -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/