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:
parent
a9befcdb08
commit
1fd4c7f1f5
1 changed files with 2 additions and 2 deletions
4
math.c
4
math.c
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue