summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-09 03:57:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-09 03:57:34 +0000
commit61a85f91a21eb34cae13c8dbe0136ab8edf1d916 (patch)
treeadcf8ef9f1fa94f129c1f3cdb2344c619a65d710
parent576b245ffae913aec11ae321fe7ddc9c2b688f67 (diff)
math.c: calling order
* math.c (math_log, rb_math_log): inverted calling order, to remove unused argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--math.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/math.c b/math.c
index 65a805698a..0b15ba7056 100644
--- a/math.c
+++ b/math.c
@@ -426,6 +426,7 @@ math_exp(VALUE unused_obj, VALUE x)
#endif
static double math_log1(VALUE x);
+FUNC_MINIMIZED(static VALUE math_log(int, const VALUE *, VALUE));
/*
* call-seq:
@@ -451,6 +452,12 @@ static double math_log1(VALUE x);
static VALUE
math_log(int argc, const VALUE *argv, VALUE unused_obj)
{
+ return rb_math_log(argc, argv);
+}
+
+VALUE
+rb_math_log(int argc, const VALUE *argv)
+{
VALUE x, base;
double d;
@@ -923,13 +930,6 @@ exp1(cos)
exp1(cosh)
exp1(exp)
exp2(hypot)
-
-VALUE
-rb_math_log(int argc, const VALUE *argv)
-{
- return math_log(argc, argv, 0);
-}
-
exp1(sin)
exp1(sinh)
#if 0