summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2020-11-17 22:53:41 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-20 11:47:47 +0900
commit8cbd5f218ba126591a2248dafda66883b260d58d (patch)
treed99cd914944ab2d74edc2f192aff1aed1828cf50
parentc11c25baefa996fd16ac6b03e2c4cbe8a98b7237 (diff)
rename
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3769
-rw-r--r--numeric.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index b4abefb..fe0a186 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1821,7 +1821,7 @@ rb_flo_is_finite_p(VALUE num)
}
static VALUE
-flo_prev_or_next(VALUE flo, double value)
+flo_nextafter(VALUE flo, double value)
{
double x, y;
x = NUM2DBL(flo);
@@ -1884,7 +1884,7 @@ flo_prev_or_next(VALUE flo, double value)
static VALUE
flo_next_float(VALUE vx)
{
- return flo_prev_or_next(vx, HUGE_VAL);
+ return flo_nextafter(vx, HUGE_VAL);
}
/*
@@ -1932,7 +1932,7 @@ flo_next_float(VALUE vx)
static VALUE
flo_prev_float(VALUE vx)
{
- return flo_prev_or_next(vx, -HUGE_VAL);
+ return flo_nextafter(vx, -HUGE_VAL);
}
/*