mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-15 17:30:37 -07:00
The call to ecl_endp() ensures that the argument is a list.
This commit is contained in:
parent
e758c7591a
commit
3da7384797
1 changed files with 2 additions and 2 deletions
|
|
@ -34,10 +34,10 @@ cl_object
|
|||
cl_values_list(cl_object list)
|
||||
{
|
||||
VALUES(0) = Cnil;
|
||||
for (NVALUES=0; !ecl_endp(list); list=CDR(list)) {
|
||||
for (NVALUES=0; !ecl_endp(list); list=ECL_CONS_CDR(list)) {
|
||||
if (NVALUES == ECL_MULTIPLE_VALUES_LIMIT)
|
||||
FEerror("Too many values in VALUES-LIST",0);
|
||||
VALUES(NVALUES++) = CAR(list);
|
||||
VALUES(NVALUES++) = ECL_CONS_CAR(list);
|
||||
}
|
||||
returnn(VALUES(0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue