mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bigint.c (udiv): xx%yy should have been xx when xx<yy.
This commit is contained in:
@@ -440,7 +440,7 @@ udiv(mrb_state *mrb, mpz_t *qq, mpz_t *rr, mpz_t *xx, mpz_t *yy)
|
||||
}
|
||||
else if (cmp < 0) {
|
||||
zero(qq);
|
||||
mpz_set(mrb, rr, yy);
|
||||
mpz_set(mrb, rr, xx);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user