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

ruby-changes:10517

From: nobu <ko1@a...>
Date: Thu, 5 Feb 2009 11:39:28 +0900 (JST)
Subject: [ruby-changes:10517] Ruby:r22071 (trunk): * array.c (ary_make_hash): hide a Hash used internally.

nobu	2009-02-05 11:37:49 +0900 (Thu, 05 Feb 2009)

  New Revision: 22071

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

  Log:
    * array.c (ary_make_hash): hide a Hash used internally.

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 22070)
+++ array.c	(revision 22071)
@@ -2869,6 +2869,7 @@
     VALUE hash = rb_hash_new();
     long i;
 
+    RBASIC(hash)->klass = 0;
     for (i=0; i<RARRAY_LEN(ary1); i++) {
 	rb_hash_aset(hash, RARRAY_PTR(ary1)[i], Qtrue);
     }
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22070)
+++ ChangeLog	(revision 22071)
@@ -1,3 +1,7 @@
+Thu Feb  5 11:37:47 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* array.c (ary_make_hash): hide a Hash used internally.
+
 Thu Feb  5 11:21:35 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (RUBY_LIB_VERSION): added for library version, to

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

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