1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

math.c: adjust prototype of math_log

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-03 05:28:44 +00:00
parent a9befcdb08
commit 1fd4c7f1f5

4
math.c
View file

@ -438,7 +438,7 @@ math_exp(VALUE obj, VALUE x)
*/ */
static VALUE static VALUE
math_log(int argc, VALUE *argv) math_log(int argc, VALUE *argv, VALUE obj)
{ {
VALUE x, base; VALUE x, base;
double d0, d; double d0, d;
@ -895,7 +895,7 @@ exp2(hypot)
VALUE VALUE
rb_math_log(int argc, VALUE *argv) rb_math_log(int argc, VALUE *argv)
{ {
return math_log(argc, argv); return math_log(argc, argv, rb_mMath);
} }
exp1(sin) exp1(sin)