ruby-changes:61733
From: S.H <ko1@a...>
Date: Tue, 16 Jun 2020 17:48:21 +0900 (JST)
Subject: [ruby-changes:61733] 84160dc29b (master): Add static modifier for rb_int_ceil & rb_int_floor (#3217)
https://git.ruby-lang.org/ruby.git/commit/?id=84160dc29b From 84160dc29bf156aa7290236dcf42a8f601129cac Mon Sep 17 00:00:00 2001 From: "S.H" <gamelinks007@g...> Date: Tue, 16 Jun 2020 17:47:59 +0900 Subject: Add static modifier for rb_int_ceil & rb_int_floor (#3217) diff --git a/numeric.c b/numeric.c index 04fd3a2..0061f08 100644 --- a/numeric.c +++ b/numeric.c @@ -176,8 +176,8 @@ static VALUE fix_rshift(long, unsigned long); https://github.com/ruby/ruby/blob/trunk/numeric.c#L176 static VALUE int_pow(long x, unsigned long y); static VALUE int_even_p(VALUE x); static int int_round_zero_p(VALUE num, int ndigits); -VALUE rb_int_floor(VALUE num, int ndigits); -VALUE rb_int_ceil(VALUE num, int ndigits); +static VALUE rb_int_floor(VALUE num, int ndigits); +static VALUE rb_int_ceil(VALUE num, int ndigits); static VALUE flo_to_i(VALUE num); static int float_round_overflow(int ndigits, int binexp); static int float_round_underflow(int ndigits, int binexp); @@ -2148,7 +2148,7 @@ rb_int_round(VALUE num, int ndigits, enum ruby_num_rounding_mode mode) https://github.com/ruby/ruby/blob/trunk/numeric.c#L2148 return n; } -VALUE +static VALUE rb_int_floor(VALUE num, int ndigits) { VALUE f; @@ -2171,7 +2171,7 @@ rb_int_floor(VALUE num, int ndigits) https://github.com/ruby/ruby/blob/trunk/numeric.c#L2171 return rb_int_minus(num, rb_int_modulo(num, f)); } -VALUE +static VALUE rb_int_ceil(VALUE num, int ndigits) { VALUE f; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/