From 8c91dfb91b49254ed7c0c5409775af9478c4f9ad Mon Sep 17 00:00:00 2001 From: glass Date: Wed, 27 Nov 2013 16:36:44 +0000 Subject: * 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 --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') 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; -- cgit v1.2.3