summaryrefslogtreecommitdiff
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
commitba8006533c1efec720ea767a1d4bc630fed24872 (patch)
treeb977bc9b9638bb5c121a6b5220e5bf4766a855e5
parent2fa7cd751e6128733302dd91e06e91a460326a6a (diff)
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
-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