From d242ae60d8d8bccb8e209130d3bdb1cc41333b8c Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 20 Jan 2003 08:29:24 +0000 Subject: * regex.c (is_in_list): should work weill with UTF-8. * regex.c (re_match_exec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 257a4c8e47..249bc645a5 100644 --- a/hash.c +++ b/hash.c @@ -101,10 +101,7 @@ rb_any_hash(a) default: DEFER_INTS; hval = rb_funcall(a, id_hash, 0); - if (FIXNUM_P(hval)) { - hval %= 536870923; - } - else { + if (!FIXNUM_P(hval)) { hval = rb_funcall(hval, '%', 1, INT2FIX(536870923)); } ENABLE_INTS; -- cgit v1.2.3