summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-02-23 11:36:52 +0900
committerMasaki Muranaka <[email protected]>2013-02-23 11:42:27 +0900
commit82313b6ec7ebb89c5993d3359d5844df7e230f9d (patch)
tree7a0e182090336a1c3b75e48eb985fd29f4148421 /src/numeric.c
parent11997dd0abd0a4daa991695014ef5a2c497db8be (diff)
downloadmruby-82313b6ec7ebb89c5993d3359d5844df7e230f9d.tar.gz
mruby-82313b6ec7ebb89c5993d3359d5844df7e230f9d.zip
Add a comment.
Diffstat (limited to 'src/numeric.c')
-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;