ruby-changes:63659
From: S-H-GAMELINKS <ko1@a...>
Date: Fri, 20 Nov 2020 11:48:04 +0900 (JST)
Subject: [ruby-changes:63659] 8cbd5f218b (master): rename
https://git.ruby-lang.org/ruby.git/commit/?id=8cbd5f218b From 8cbd5f218ba126591a2248dafda66883b260d58d Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS <gamelinks007@g...> Date: Tue, 17 Nov 2020 22:53:41 +0900 Subject: rename 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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L1821 } 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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L1884 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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L1932 static VALUE flo_prev_float(VALUE vx) { - return flo_prev_or_next(vx, -HUGE_VAL); + return flo_nextafter(vx, -HUGE_VAL); } /* -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/