aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 15:29:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 15:29:30 +0000
commitf0dff3c67789523efd8ae930a8b2aa071fcde071 (patch)
tree17e159ae96b798753d772c2126d55dcf7500af9d /math.c
parent793a952bc6fa889ecd46aa536f10aae5cc828321 (diff)
downloadruby-f0dff3c67789523efd8ae930a8b2aa071fcde071.tar.gz
* math.c (domain_check): ANSI style function arguments
* math.c (math_log): too few argument to domain_check(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/math.c b/math.c
index 259d4c91df..9bc7e2a402 100644
--- a/math.c
+++ b/math.c
@@ -23,9 +23,7 @@ VALUE rb_mMath;
} while (0)
static void
-domain_check(x, msg)
- double x;
- char *msg;
+domain_check(double x, char *msg)
{
while(1) {
if (errno) {
@@ -325,7 +323,7 @@ math_log(int argc, VALUE *argv)
Need_Float(base);
d /= log(RFLOAT(base)->value);
}
- domain_check(d);
+ domain_check(d, "log");
return rb_float_new(d);
}