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

ruby-changes:31807

From: glass <ko1@a...>
Date: Thu, 28 Nov 2013 01:36:52 +0900 (JST)
Subject: [ruby-changes:31807] glass:r43886 (trunk): * st.c (st_keys): fix to use st_index_t for size of hash.

glass	2013-11-28 01:36:44 +0900 (Thu, 28 Nov 2013)

  New Revision: 43886

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

  Log:
    * st.c (st_keys): fix to use st_index_t for size of hash.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43885)
+++ ChangeLog	(revision 43886)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov 28 01:35:08 2013  Masaki Matsushita  <glass.saga@g...>
+
+	* st.c (st_keys): fix to use st_index_t for size of hash.
+
 Thu Nov 28 00:36:52 2013  Masaki Matsushita  <glass.saga@g...>
 
 	* st.c (st_keys): define st_keys(). it writes each key to buffer.
Index: hash.c
===================================================================
--- hash.c	(revision 43885)
+++ hash.c	(revision 43886)
@@ -1703,7 +1703,7 @@ VALUE https://github.com/ruby/ruby/blob/trunk/hash.c#L1703
 rb_hash_keys(VALUE hash)
 {
     VALUE keys;
-    int size = RHASH_SIZE(hash);
+    st_index_t size = RHASH_SIZE(hash);
 
     keys = rb_ary_new_capa(size);
     if (size == 0) return keys;

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

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