mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 07:30:28 +02:00
* numbers.c (scm_makdbl): Bugfix: Initialize imaginary part.
(Thanks to Lorentey Karoly.)
This commit is contained in:
parent
b94903c2c1
commit
a7c930f19c
1 changed files with 1 additions and 0 deletions
|
@ -2471,6 +2471,7 @@ scm_makdbl (x, y)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SCM_NEWSMOB(z,scm_tc_dblc,scm_must_malloc (2L * sizeof (double), "comkplex"));
|
SCM_NEWSMOB(z,scm_tc_dblc,scm_must_malloc (2L * sizeof (double), "comkplex"));
|
||||||
|
SCM_IMAG (z) = y;
|
||||||
}
|
}
|
||||||
SCM_REAL (z) = x;
|
SCM_REAL (z) = x;
|
||||||
SCM_ALLOW_INTS;
|
SCM_ALLOW_INTS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue