From d497898c231f124ba187e2650be8af20b47b1a97 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 8 Mar 2002 07:03:09 +0000 Subject: * eval.c (cvar_cbase): utility function to find innermost non singleton cbase. * eval.c (is_defined): adopt new cvar behavior. * eval.c (rb_eval): ditto. * eval.c (assign): ditto. * class.c (rb_mod_clone): should not call rb_obj_clone(), since Module does not provide "allocate". * class.c (rb_singleton_class): should crate new singleton class if obj is a class or module and attached object is different, which means metaclass of singleton class is sought. * time.c (time_s_alloc): now follows allocation framework. * eval.c (rb_eval): should initialize outer class variables from methods in singleton class definitions. * eval.c (assign): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 468830a075..170913dc18 100644 --- a/hash.c +++ b/hash.c @@ -97,10 +97,10 @@ rb_any_hash(a) DEFER_INTS; hval = rb_funcall(a, id_hash, 0); if (FIXNUM_P(hval)) { - hval %= 536870917; + hval %= 536870923; } else { - hval = rb_funcall(hval, '%', 1, INT2FIX(536870917)); + hval = rb_funcall(hval, '%', 1, INT2FIX(536870923)); } ENABLE_INTS; return (int)FIX2LONG(hval); -- cgit v1.2.3