mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
(scm_product): In complex * bignum, correction to
REAL/IMAG fetch, x is the complex, not y.
This commit is contained in:
parent
e7cc532b32
commit
7650633547
1 changed files with 2 additions and 2 deletions
|
@ -3574,8 +3574,8 @@ scm_product (SCM x, SCM y)
|
|||
{
|
||||
double z = mpz_get_d (SCM_I_BIG_MPZ (y));
|
||||
scm_remember_upto_here_1 (y);
|
||||
return scm_make_complex (z * SCM_COMPLEX_REAL (y),
|
||||
z * SCM_COMPLEX_IMAG (y));
|
||||
return scm_make_complex (z * SCM_COMPLEX_REAL (x),
|
||||
z * SCM_COMPLEX_IMAG (x));
|
||||
}
|
||||
else if (SCM_REALP (y))
|
||||
return scm_make_complex (SCM_REAL_VALUE (y) * SCM_COMPLEX_REAL (x),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue