aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 16:36:44 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 16:36:44 +0000
commit8c91dfb91b49254ed7c0c5409775af9478c4f9ad (patch)
tree062d71772c4e88e2293882ac65bb6d43e862e591 /hash.c
parentb426e1b1fafdab688c646cef8245fa72403d37bb (diff)
downloadruby-8c91dfb91b49254ed7c0c5409775af9478c4f9ad.tar.gz
* 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
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 4fc7b88668..f09b19af51 100644
--- a/hash.c
+++ b/hash.c
@@ -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;