diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-24 13:21:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-24 13:21:30 +0000 |
commit | 9a464db8a8e079437198c0949ca8dfe8e17dbf85 (patch) | |
tree | 9dda62295a2cfe67cac38b8b15cc82503cda795c /hash.c | |
parent | e53e9860827309c010047cde6c83698c25f8af53 (diff) | |
download | ruby-9a464db8a8e079437198c0949ca8dfe8e17dbf85.tar.gz |
hash.c: split long long literals
* hash.c (prime1, prime2): split long long literals for platforms
where LL suffix is not supported, e.g., VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -220,8 +220,8 @@ rb_any_hash(VALUE a) tailored Spooky or City hash function can be. */ /* Here we two primes with random bit generation. */ -static const uint64_t prime1 = 0x2e0bb864e9ea7df5ULL; -static const uint64_t prime2 = 0xcdb32970830fcaa1ULL; +static const uint64_t prime1 = ((uint64_t)0x2e0bb864 << 32) | 0xe9ea7df5; +static const uint64_t prime2 = ((uint64_t)0xcdb32970 << 32) | 0x830fcaa1; static inline uint64_t |