aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-25 12:32:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-25 12:32:10 +0000
commit2a80d579fa35c76ce4128c23b3022ef2db19ffcc (patch)
treeb1c949b2ffedf34763908f375135596bccd9c856 /hash.c
parent5aba6dead5af747daf19e6f198180becfc59f0d2 (diff)
downloadruby-2a80d579fa35c76ce4128c23b3022ef2db19ffcc.tar.gz
hash.c: use uint128_t
* hash.c (mult_and_mix): use uint128_t instead of __uint128_t. [ruby-core:84438] [Bug #14231] From: Nobuyoshi Nakada <nobu@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61472 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 93f1685c9e..285f6118b1 100644
--- a/hash.c
+++ b/hash.c
@@ -231,7 +231,7 @@ static inline uint64_t
mult_and_mix(uint64_t m1, uint64_t m2)
{
#if defined HAVE_UINT128_T
- __uint128_t r = (__uint128_t) m1 * (__uint128_t) m2;
+ uint128_t r = (uint128_t) m1 * (uint128_t) m2;
return (uint64_t) (r >> 64) ^ (uint64_t) r;
#else
uint64_t hm1 = m1 >> 32, hm2 = m2 >> 32;