[前][次][番号順一覧][スレッド一覧]

ruby-changes:35798

From: normal <ko1@a...>
Date: Sat, 11 Oct 2014 15:02:56 +0900 (JST)
Subject: [ruby-changes:35798] normal:r47880 (trunk): string.c (rb_str_intern): remove unnecessary RB_GC_GUARD

normal	2014-10-11 15:02:42 +0900 (Sat, 11 Oct 2014)

  New Revision: 47880

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47880

  Log:
    string.c (rb_str_intern): remove unnecessary RB_GC_GUARD
    
    Incorrectly placed, and no longer needed since r25351

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47879)
+++ ChangeLog	(revision 47880)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Oct 11 14:57:08 2014  Eric Wong  <e@8...>
+
+	* string.c (rb_str_intern): remove unnecessary RB_GC_GUARD
+
 Sat Oct 11 13:47:13 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (remove_duplicate_keys): remove duplicate literal keys,
Index: string.c
===================================================================
--- string.c	(revision 47879)
+++ string.c	(revision 47880)
@@ -7549,9 +7549,8 @@ rb_str_crypt(VALUE str, VALUE salt) https://github.com/ruby/ruby/blob/trunk/string.c#L7549
 
 
 VALUE
-rb_str_intern(VALUE s)
+rb_str_intern(VALUE str)
 {
-    VALUE str = RB_GC_GUARD(s);
     ID id;
 
     id = rb_intern_str(str);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]