From: nobu.nokada@... Date: 2004-08-20T10:24:24+09:00 Subject: Re: Hash values too big to fit into buckets Hi, At Fri, 20 Aug 2004 04:36:23 +0900, Nate Smith wrote in [ruby-talk:109851]: > When @expansion.hash is very large, the hash values get large, and > values like: 67 4 -946450216 for @nonTerminal.hash, @action.hash, and > @expansion.hash, respectively, generate the following error: > > in `hash': bignum too big to convert into `int' (RangeError) It seems to work for me. $ cat a.rb class X; def hash; 1 << 34; end; end x = X.new p x.hash, x.hash.class h = {x => 1} p h[x] $ ruby16 -v a.rb ruby 1.6.8 (2003-10-15) [i686-linux] 17179869184 Bignum 1 $ ruby18 -v a.rb ruby 1.8.2 (2004-08-19) [i686-linux] 17179869184 Bignum 1 -- Nobu Nakada