From a88640022e8febe582f66faaeef4c820455da701 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Nov 2016 03:28:57 +0000 Subject: 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 --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') 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 -- cgit v1.2.3