aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 9ce86e1a59..e288119318 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1355,7 +1355,7 @@ rb_dbl_hash(double d)
/* normalize -0.0 to 0.0 */
if (d == 0.0) d = 0.0;
hash = rb_memhash(&d, sizeof(d));
- return LONG2FIX(hash);
+ return ST2FIX(hash);
}
VALUE