mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
* numbers.c (scm_divbigint): When the remainder is zero, we don't
want to subtract it from the modulus; we just want to leave it alone.
This commit is contained in:
parent
fb21f20278
commit
604b0844c5
1 changed files with 1 additions and 1 deletions
|
@ -1192,7 +1192,7 @@ scm_divbigint(x, z, sgn, mode)
|
|||
register SCM_BIGDIG *ds = SCM_BDIGITS(x);
|
||||
scm_sizet nd = SCM_NUMDIGS(x);
|
||||
while(nd--) t2 = (SCM_BIGUP(t2) + ds[nd]) % z;
|
||||
if (mode) t2 = z - t2;
|
||||
if (mode && t2) t2 = z - t2;
|
||||
return SCM_MAKINUM(sgn ? -t2 : t2);
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue