[前][次][番号順一覧][スレッド一覧]

ruby-changes:48938

From: nobu <ko1@a...>
Date: Wed, 6 Dec 2017 21:36:43 +0900 (JST)
Subject: [ruby-changes:48938] nobu:r61057 (trunk): numeric.c: rb_int_powm rdoc

nobu	2017-12-06 21:36:37 +0900 (Wed, 06 Dec 2017)

  New Revision: 61057

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61057

  Log:
    numeric.c: rb_int_powm rdoc
    
    * numeric.c (Init_Numeric): let rdoc know that rb_int_powm is
      defined in bignum.c.  [Feature #12508] [Feature #11003]

  Modified files:
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 61056)
+++ numeric.c	(revision 61057)
@@ -5382,7 +5382,7 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L5382
     rb_define_method(rb_cInteger, "fdiv", rb_int_fdiv, 1);
     rb_define_method(rb_cInteger, "**", rb_int_pow, 1);
 
-    rb_define_method(rb_cInteger, "pow", rb_int_powm, -1);
+    rb_define_method(rb_cInteger, "pow", rb_int_powm, -1); /* in bignum.c */
 
     rb_define_method(rb_cInteger, "abs", rb_int_abs, 0);
     rb_define_method(rb_cInteger, "magnitude", rb_int_abs, 0);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]