aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 03:28:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 03:28:57 +0000
commita88640022e8febe582f66faaeef4c820455da701 (patch)
treeb977bc9b9638bb5c121a6b5220e5bf4766a855e5 /hash.c
parentb8c704ef4d0da6fc3abb56bf58652664424c3c3a (diff)
downloadruby-a88640022e8febe582f66faaeef4c820455da701.tar.gz
add cast
* hash.c (rb_objid_hash): need to cast down. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56657 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 4615c47b82..0ac95730b3 100644
--- a/hash.c
+++ b/hash.c
@@ -271,7 +271,7 @@ key64_hash (uint64_t key, uint32_t seed)
long
rb_objid_hash(st_index_t index)
{
- return key64_hash(index, (uint32_t) prime2);
+ return (long)key64_hash(index, (uint32_t)prime2);
}
static st_index_t