From f334f1ba85c18b8113eaf8043f3b377abdd92035 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 26 Sep 2009 07:32:03 +0000 Subject: * string.c (rb_hash_start): fixed shift width on 128bit platform. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index ef826d859..8d06843dc 100644 --- a/string.c +++ b/string.c @@ -2206,15 +2206,15 @@ rb_hash_start(st_index_t h) if (!hashseed_init) { hashseed = rb_genrand_int32(); #if SIZEOF_VALUE*CHAR_BIT > 4*8 - hashseed <<= 4*8; + hashseed <<= 32; hashseed |= rb_genrand_int32(); #endif #if SIZEOF_VALUE*CHAR_BIT > 8*8 - hashseed <<= 8*8; + hashseed <<= 32; hashseed |= rb_genrand_int32(); #endif #if SIZEOF_VALUE*CHAR_BIT > 12*8 - hashseed <<= 12*8; + hashseed <<= 32; hashseed |= rb_genrand_int32(); #endif hashseed_init = 1; -- cgit