summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/numeric.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/numeric.c b/src/numeric.c
index d3c3d68de..6a4e7ca57 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -740,6 +740,8 @@ fixdivmod(mrb_state *mrb, mrb_int x, mrb_int y, mrb_int *divp, mrb_int *modp)
{
mrb_int div, mod;
+ /* TODO: add assert(y != 0) to make sure */
+
if (y < 0) {
if (x < 0)
div = -x / -y;