aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-03 05:28:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-03 05:28:44 +0000
commit1fd4c7f1f5efff77579172b7ca7ae7e971361919 (patch)
treea82a4188821ee822804c40d9bff518f71244c525 /math.c
parenta9befcdb08db9940b0bdde96c7447bb4730d3872 (diff)
downloadruby-1fd4c7f1f5efff77579172b7ca7ae7e971361919.tar.gz
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
Diffstat (limited to 'math.c')
-rw-r--r--math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math.c b/math.c
index 898ccb6ede..8a5e5cdc33 100644
--- a/math.c
+++ b/math.c
@@ -438,7 +438,7 @@ math_exp(VALUE obj, VALUE x)
*/
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)
VALUE
rb_math_log(int argc, VALUE *argv)
{
- return math_log(argc, argv);
+ return math_log(argc, argv, rb_mMath);
}
exp1(sin)