summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 1 insertions, 4 deletions
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;