mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 15:40:29 +02:00
* numbers.c (scm_lcm): Bugfix: BIGDIG --> SCM_BIGDIG;
Account for the case when second argument is unbound.
This commit is contained in:
parent
dd054d4138
commit
02a3305a85
1 changed files with 7 additions and 4 deletions
|
@ -487,13 +487,16 @@ scm_lcm (n1, n2)
|
|||
SCM n2;
|
||||
{
|
||||
SCM d;
|
||||
#ifndef BIGDIG
|
||||
#ifndef SCM_BIGDIG
|
||||
SCM_GASSERT2 (SCM_INUMP (n1), g_lcm, n1, n2, SCM_ARG1, s_lcm);
|
||||
SCM_GASSERT2 (SCM_INUMP (n2), g_lcm, n1, n2, SCM_ARGn, s_lcm);
|
||||
SCM_GASSERT2 (SCM_INUMP (n2) || SCM_UNBNDP (n2),
|
||||
g_lcm, n1, n2, SCM_ARGn, s_lcm);
|
||||
#else
|
||||
SCM_GASSERT2 (SCM_INUMP (n1) || SCM_NIMP (n1) && SCM_BIGP (n1),
|
||||
SCM_GASSERT2 (SCM_INUMP (n1) || (SCM_NIMP (n1) && SCM_BIGP (n1)),
|
||||
g_lcm, n1, n2, SCM_ARG1, s_lcm);
|
||||
SCM_GASSERT2 (SCM_INUMP (n2) || SCM_NIMP (n2) && SCM_BIGP (n2),
|
||||
SCM_GASSERT2 (SCM_INUMP (n2)
|
||||
|| SCM_UNBNDP (n2)
|
||||
|| (SCM_NIMP (n2) && SCM_BIGP (n2)),
|
||||
g_lcm, n1, n2, SCM_ARGn, s_lcm);
|
||||
#endif
|
||||
if (SCM_UNBNDP (n2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue