mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
(scm_modulo): For inum/big and big/big, remove test of
big==0 since that never occurs.
This commit is contained in:
parent
d885e204fd
commit
1fff961089
1 changed files with 0 additions and 8 deletions
|
@ -867,10 +867,6 @@ scm_modulo (SCM x, SCM y)
|
|||
else if (SCM_BIGP (y))
|
||||
{
|
||||
int sgn_y = mpz_sgn (SCM_I_BIG_MPZ (y));
|
||||
|
||||
if (sgn_y == 0)
|
||||
scm_num_overflow (s_modulo);
|
||||
else
|
||||
{
|
||||
mpz_t z_x;
|
||||
SCM result;
|
||||
|
@ -933,10 +929,6 @@ scm_modulo (SCM x, SCM y)
|
|||
}
|
||||
else if (SCM_BIGP (y))
|
||||
{
|
||||
int sgn_y = mpz_sgn (SCM_I_BIG_MPZ (y));
|
||||
if (sgn_y == 0)
|
||||
scm_num_overflow (s_modulo);
|
||||
else
|
||||
{
|
||||
SCM result = scm_i_mkbig ();
|
||||
int y_sgn = mpz_sgn (SCM_I_BIG_MPZ (y));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue