1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-17 01:00:20 +02:00

* eval.c (scm_lookupcar): Test for !SCM_CONSP (SCM_CAR (env))

instead of SCM_TRUE (scm_procedurep (SCM_CAR (env))).
This commit is contained in:
Mikael Djurfeldt 2000-06-04 01:29:54 +00:00
parent 96372e45b8
commit 790071cdc8

View file

@ -273,7 +273,7 @@ scm_lookupcar (SCM vloc, SCM genv, int check)
#endif #endif
for (; SCM_NIMP (env); env = SCM_CDR (env)) for (; SCM_NIMP (env); env = SCM_CDR (env))
{ {
if (SCM_TRUE_P (scm_procedure_p (SCM_CAR (env)))) if (!SCM_CONSP (SCM_CAR (env)))
break; break;
al = SCM_CARLOC (env); al = SCM_CARLOC (env);
for (fl = SCM_CAR (*al); SCM_NIMP (fl); fl = SCM_CDR (fl)) for (fl = SCM_CAR (*al); SCM_NIMP (fl); fl = SCM_CDR (fl))