From 1fd4c7f1f5efff77579172b7ca7ae7e971361919 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 May 2014 05:28:44 +0000 Subject: 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 --- math.c | 4 ++-- 1 file 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) -- cgit v1.2.3