aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--math.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c2de5c958f..926bf5f2e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jul 28 00:26:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (domain_check): ANSI style function arguments
+
+ * math.c (math_log): too few argument to domain_check().
+
Thu Jul 27 21:19:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* math.c (domain_check): a new function to check domain error
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);
}