summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}