aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 5a7e1dcff2..e812389c38 100644
--- a/numeric.c
+++ b/numeric.c
@@ -839,9 +839,7 @@ flo_hash(VALUE num)
int hash;
d = RFLOAT(num)->value;
- if (d == 0) d = fabs(d);
- hash = rb_memhash(&d, sizeof(d)) ^ RBASIC(num)->klass;
- if (hash < 0) hash = -hash;
+ hash = rb_memhash(&d, sizeof(d));
return INT2FIX(hash);
}