mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +02:00
Only check number of arguments for closures, see last change.
I just love this evaluator, man.
This commit is contained in:
parent
afdd97aed1
commit
a820af98a7
1 changed files with 2 additions and 2 deletions
|
@ -2005,7 +2005,7 @@ dispatch:
|
||||||
SCM_ASRTGO (SCM_NIMP (proc), badfun);
|
SCM_ASRTGO (SCM_NIMP (proc), badfun);
|
||||||
PREP_APPLY (proc, scm_cons (t.arg1, SCM_EOL));
|
PREP_APPLY (proc, scm_cons (t.arg1, SCM_EOL));
|
||||||
ENTER_APPLY;
|
ENTER_APPLY;
|
||||||
if (scm_badformalsp (proc, 1))
|
if (SCM_CLOSUREP(proc) && scm_badformalsp (proc, 1))
|
||||||
goto umwrongnumargs;
|
goto umwrongnumargs;
|
||||||
goto evap1;
|
goto evap1;
|
||||||
}
|
}
|
||||||
|
@ -2217,7 +2217,7 @@ dispatch:
|
||||||
SCM_ASRTGO (SCM_NIMP (proc), badfun);
|
SCM_ASRTGO (SCM_NIMP (proc), badfun);
|
||||||
PREP_APPLY (proc, scm_cons (t.arg1, SCM_EOL));
|
PREP_APPLY (proc, scm_cons (t.arg1, SCM_EOL));
|
||||||
ENTER_APPLY;
|
ENTER_APPLY;
|
||||||
if (scm_badformalsp (proc, 1))
|
if (SCM_CLOSUREP(proc) && scm_badformalsp (proc, 1))
|
||||||
goto umwrongnumargs;
|
goto umwrongnumargs;
|
||||||
goto evap1;
|
goto evap1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue