core: Use length__.
* src/mes.c (check_formals): Use length__.
This commit is contained in:
parent
664289c50f
commit
3e6319058a
|
@ -567,8 +567,8 @@ assert_defined (SCM x, SCM e) ///((internal))
|
|||
SCM
|
||||
check_formals (SCM f, SCM formals, SCM args) ///((internal))
|
||||
{
|
||||
int flen = (TYPE (formals) == TNUMBER) ? VALUE (formals) : VALUE (length (formals));
|
||||
int alen = VALUE (length (args));
|
||||
int flen = (TYPE (formals) == TNUMBER) ? VALUE (formals) : length__ (formals);
|
||||
int alen = length__ (args);
|
||||
if (alen != flen && alen != -1 && flen != -1)
|
||||
{
|
||||
char *s = "apply: wrong number of arguments; expected: ";
|
||||
|
|
Loading…
Reference in a new issue