mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-09 14:40:37 -07:00
find-class: fix bug when searching compiler env
Environment records can be atoms.
This commit is contained in:
parent
fcddd9c175
commit
ae92d13562
1 changed files with 2 additions and 1 deletions
|
|
@ -308,7 +308,8 @@ si_copy_instance(cl_object x)
|
|||
loop_for_in(env) {
|
||||
if (ECL_CONSP(env)) {
|
||||
cl_object record = ECL_CONS_CAR(env);
|
||||
if (ecl_car(record) == @':type' && ecl_cadr(record) == name && ECL_INSTANCEP(ecl_caddr(record))) {
|
||||
if (ECL_CONSP(record) && ecl_car(record) == @':type'
|
||||
&& ecl_cadr(record) == name && ECL_INSTANCEP(ecl_caddr(record))) {
|
||||
class = ecl_caddr(record);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue