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

ruby-changes:33402

From: normal <ko1@a...>
Date: Mon, 31 Mar 2014 10:34:27 +0900 (JST)
Subject: [ruby-changes:33402] normal:r45481 (trunk): st.c (st_init_table_with_size): update comment

normal	2014-03-31 10:34:19 +0900 (Mon, 31 Mar 2014)

  New Revision: 45481

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

  Log:
    st.c (st_init_table_with_size): update comment

  Modified files:
    trunk/ChangeLog
    trunk/st.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45480)
+++ ChangeLog	(revision 45481)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar 31 10:28:01 2014  Eric Wong  <e@8...>
+
+	* st.c (st_init_table_with_size): update comment
+	  [Feature #9425]
+
 Sun Mar 30 23:39:26 2014  NAKAMURA Usaku  <usa@r...>
 
 	* win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
Index: st.c
===================================================================
--- st.c	(revision 45480)
+++ st.c	(revision 45481)
@@ -201,7 +201,7 @@ st_init_table_with_size(const struct st_ https://github.com/ruby/ruby/blob/trunk/st.c#L201
 	size = ST_DEFAULT_PACKED_TABLE_SIZE;
     }
     else {
-	size = new_size(size);	/* round up to prime number */
+	size = new_size(size);	/* round up to power-of-two */
     }
     tbl->num_bins = size;
     tbl->bins = st_alloc_bins(size);

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

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