mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Fix extensibility of 1-argument atan
* libguile/numbers.c (scm_atan): Call SCM_WTA_DISPATCH_1 instead of SCM_WTA_DISPATCH_2 if the second argument is unbound. Arguably, SCM_WTA_DISPATCH_* should handle that case gracefully, but currently it doesn't.
This commit is contained in:
parent
1ce7279a06
commit
18104cac0b
1 changed files with 1 additions and 1 deletions
|
@ -7025,7 +7025,7 @@ SCM_PRIMITIVE_GENERIC (scm_atan, "atan", 1, 1, 0,
|
|||
scm_c_make_rectangular (0, 2));
|
||||
}
|
||||
else
|
||||
SCM_WTA_DISPATCH_2 (g_scm_atan, z, y, SCM_ARG1, s_scm_atan);
|
||||
SCM_WTA_DISPATCH_1 (g_scm_atan, z, SCM_ARG1, s_scm_atan);
|
||||
}
|
||||
else if (scm_is_real (z))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue