diff options
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |