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

ruby-changes:33713

From: nobu <ko1@a...>
Date: Sat, 3 May 2014 14:28:51 +0900 (JST)
Subject: [ruby-changes:33713] nobu:r45794 (trunk): math.c: adjust prototype of math_log

nobu	2014-05-03 14:28:44 +0900 (Sat, 03 May 2014)

  New Revision: 45794

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45794

  Log:
    math.c: adjust prototype of math_log
    
    * math.c (math_log): adjust prototype as method function.

  Modified files:
    trunk/math.c
Index: math.c
===================================================================
--- math.c	(revision 45793)
+++ math.c	(revision 45794)
@@ -438,7 +438,7 @@ math_exp(VALUE obj, VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L438
  */
 
 static VALUE
-math_log(int argc, VALUE *argv)
+math_log(int argc, VALUE *argv, VALUE obj)
 {
     VALUE x, base;
     double d0, d;
@@ -895,7 +895,7 @@ exp2(hypot) https://github.com/ruby/ruby/blob/trunk/math.c#L895
 VALUE
 rb_math_log(int argc, VALUE *argv)
 {
-    return math_log(argc, argv);
+    return math_log(argc, argv, rb_mMath);
 }
 
 exp1(sin)

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

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