ruby-changes:66270
From: Nobuyoshi <ko1@a...>
Date: Thu, 20 May 2021 14:35:11 +0900 (JST)
Subject: [ruby-changes:66270] 63663bb459 (master): Rename nucomp_false s nucomp_real_p_m
https://git.ruby-lang.org/ruby.git/commit/?id=63663bb459 From 63663bb459b8592fa6c8f78a77fa15e9d8e1fcbc Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 20 May 2021 14:31:49 +0900 Subject: Rename nucomp_false s nucomp_real_p_m --- complex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/complex.c b/complex.c index 66d9754..09e47f8 100644 --- a/complex.c +++ b/complex.c @@ -1272,7 +1272,7 @@ rb_complex_conjugate(VALUE self) https://github.com/ruby/ruby/blob/trunk/complex.c#L1272 * Returns false, even if the complex number has no imaginary part. */ static VALUE -nucomp_false(VALUE self) +nucomp_real_p_m(VALUE self) { return Qfalse; } @@ -2385,7 +2385,7 @@ Init_Complex(void) https://github.com/ruby/ruby/blob/trunk/complex.c#L2385 rb_define_method(rb_cComplex, "conjugate", rb_complex_conjugate, 0); rb_define_method(rb_cComplex, "conj", rb_complex_conjugate, 0); - rb_define_method(rb_cComplex, "real?", nucomp_false, 0); + rb_define_method(rb_cComplex, "real?", nucomp_real_p_m, 0); rb_define_method(rb_cComplex, "numerator", nucomp_numerator, 0); rb_define_method(rb_cComplex, "denominator", nucomp_denominator, 0); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/