ruby-changes:14673
From: mame <ko1@a...>
Date: Sun, 31 Jan 2010 21:46:53 +0900 (JST)
Subject: [ruby-changes:14673] Ruby:r26525 (trunk): * string.c (rb_string_value): make no exception for Symbol.
mame 2010-01-31 21:46:36 +0900 (Sun, 31 Jan 2010) New Revision: 26525 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26525 Log: * string.c (rb_string_value): make no exception for Symbol. [ruby-dev:40274] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26524) +++ ChangeLog (revision 26525) @@ -1,3 +1,8 @@ +Sun Jan 31 21:43:35 2010 Yusuke Endoh <mame@t...> + + * string.c (rb_string_value): make no exception for Symbol. + [ruby-dev:40274] + Sun Jan 31 21:10:15 2010 Yusuke Endoh <mame@t...> * vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969] Index: string.c =================================================================== --- string.c (revision 26524) +++ string.c (revision 26525) @@ -1349,13 +1349,7 @@ { VALUE s = *ptr; if (TYPE(s) != T_STRING) { - if (SYMBOL_P(s)) { - s = rb_sym_to_s(s); - } - else { - s = rb_str_to_str(s); - } - *ptr = s; + *ptr = rb_str_to_str(s); } return s; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/