ruby-changes:56759
From: Nobuyoshi <ko1@a...>
Date: Fri, 2 Aug 2019 11:41:05 +0900 (JST)
Subject: [ruby-changes:56759] Nobuyoshi Nakada: ffe4a6ebf9 (master): Use RB_INTEGER_TYPE_P
https://git.ruby-lang.org/ruby.git/commit/?id=ffe4a6ebf9 From ffe4a6ebf93166544c4265271f7b8cffa2208af6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 2 Aug 2019 11:22:56 +0900 Subject: Use RB_INTEGER_TYPE_P diff --git a/rational.c b/rational.c index 0f3cee7..3737db4 100644 --- a/rational.c +++ b/rational.c @@ -119,7 +119,12 @@ f_abs(VALUE x) https://github.com/ruby/ruby/blob/trunk/rational.c#L119 return rb_funcall(x, id_abs, 0); } -fun1(integer_p) + +inline static VALUE +f_integer_p(VALUE x) +{ + return RB_INTEGER_TYPE_P(x); +} inline static VALUE f_to_i(VALUE x) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/