1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

* eval.c (scm_nconc2last): Revert last change; there seems to be

other stuff going on here.
This commit is contained in:
Jim Blandy 1996-10-11 08:59:38 +00:00
parent 1eaceb6160
commit 1e79802357

View file

@ -2369,12 +2369,12 @@ scm_nconc2last (lst)
SCM *lloc; SCM *lloc;
if (SCM_EOL == lst) if (SCM_EOL == lst)
return lst; return lst;
SCM_ASSERT (scm_ilength(lst) >= 0, lst, SCM_WNA, s_nconc2last); SCM_ASSERT (SCM_NIMP (lst) && SCM_CONSP (lst), lst, SCM_ARG1, s_nconc2last);
lloc = &lst; lloc = &lst;
while (SCM_NNULLP (SCM_CDR (*lloc))) while (SCM_NNULLP (SCM_CDR (*lloc)))
{ {
lloc = &SCM_CDR (*lloc); lloc = &SCM_CDR (*lloc);
SCM_ASSERT (scm_ilength(SCM_CAR(*lloc)) >= 0, lst, SCM_ARGn, s_nconc2last); SCM_ASSERT (SCM_NIMP (*lloc) && SCM_CONSP (*lloc), lst, SCM_ARG1, s_nconc2last);
} }
*lloc = SCM_CAR (*lloc); *lloc = SCM_CAR (*lloc);
return lst; return lst;