mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
memoize: booleanify the rest arg
* libguile/memoize.c (memoize): Turn the rest arg into a boolean. Fixes an error when rest gets passed to set-procedure-minimum-arity!.
This commit is contained in:
parent
ee15aa46e3
commit
d61d668654
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ memoize (SCM exp, SCM env)
|
||||||
int nreq, nopt, ntotal;
|
int nreq, nopt, ntotal;
|
||||||
|
|
||||||
req = REF (exp, LAMBDA_CASE, REQ);
|
req = REF (exp, LAMBDA_CASE, REQ);
|
||||||
rest = REF (exp, LAMBDA_CASE, REST);
|
rest = scm_not (scm_not (REF (exp, LAMBDA_CASE, REST)));
|
||||||
opt = REF (exp, LAMBDA_CASE, OPT);
|
opt = REF (exp, LAMBDA_CASE, OPT);
|
||||||
kw = REF (exp, LAMBDA_CASE, KW);
|
kw = REF (exp, LAMBDA_CASE, KW);
|
||||||
inits = REF (exp, LAMBDA_CASE, INITS);
|
inits = REF (exp, LAMBDA_CASE, INITS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue