Add a comment.

This commit is contained in:
Masaki Muranaka
2013-02-23 11:36:52 +09:00
parent 11997dd0ab
commit 82313b6ec7
+2
View File
@@ -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;