aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index f8f0766940..f66fdaef54 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1520,6 +1520,12 @@ flo_cmp(VALUE x, VALUE y)
return rb_dbl_cmp(a, b);
}
+int
+rb_float_cmp(VALUE x, VALUE y)
+{
+ return NUM2INT(flo_cmp(x, y));
+}
+
/*
* call-seq:
* float > real -> true or false