summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-14 00:59:58 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-14 00:59:58 +0900
commitb4be82ccc1941df0a4dcbc0f0b9922798cf0cac4 (patch)
treee1ec2772a29f2af80cdd082292797baef0cc405b
parent764a791f439bb843838239909d98b26ac90a9e02 (diff)
downloadmruby-b4be82ccc1941df0a4dcbc0f0b9922798cf0cac4.tar.gz
mruby-b4be82ccc1941df0a4dcbc0f0b9922798cf0cac4.zip
variable name typo fixed
-rw-r--r--src/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math.c b/src/math.c
index 3898146b6..f3a2dc12c 100644
--- a/src/math.c
+++ b/src/math.c
@@ -419,7 +419,7 @@ math_log(mrb_state *mrb, mrb_value obj)
argc = mrb_get_args(mrb, "f|f", &x, &base);
x = log(x);
if (argc == 2) {
- d /= log(base);
+ x /= log(base);
}
return mrb_float_value(x);
}