mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add a comment.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user