1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
glass 2013-11-27 16:36:44 +00:00
parent b426e1b1fa
commit 8c91dfb91b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Nov 28 01:35:08 2013 Masaki Matsushita <glass.saga@gmail.com>
* 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@gmail.com>
* st.c (st_keys): define st_keys(). it writes each key to buffer.

2
hash.c
View file

@ -1703,7 +1703,7 @@ VALUE
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;