st.c (st_init_table_with_size): update comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a92374677c
commit
8125399c09
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 31 10:28:01 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* st.c (st_init_table_with_size): update comment
|
||||||
|
[Feature #9425]
|
||||||
|
|
||||||
Sun Mar 30 23:39:26 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
Sun Mar 30 23:39:26 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
|
* win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
|
||||||
|
2
st.c
2
st.c
@ -201,7 +201,7 @@ st_init_table_with_size(const struct st_hash_type *type, st_index_t size)
|
|||||||
size = ST_DEFAULT_PACKED_TABLE_SIZE;
|
size = ST_DEFAULT_PACKED_TABLE_SIZE;
|
||||||
}
|
}
|
||||||
else {
|
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->num_bins = size;
|
||||||
tbl->bins = st_alloc_bins(size);
|
tbl->bins = st_alloc_bins(size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user