mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Tweak has-cycle to check symbols again. flip-flopping on this
This commit is contained in:
parent
59e895be19
commit
e0025483a0
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ static object Cyc_has_cycle(object lst) {
|
||||||
if (Cyc_is_cons(cdr(fast_lst)) == boolean_f) return boolean_f;
|
if (Cyc_is_cons(cdr(fast_lst)) == boolean_f) return boolean_f;
|
||||||
if (is_object_type(car(slow_lst)) &&
|
if (is_object_type(car(slow_lst)) &&
|
||||||
boolean_f == Cyc_is_boolean(car(slow_lst)) && // Avoid expected dupes
|
boolean_f == Cyc_is_boolean(car(slow_lst)) && // Avoid expected dupes
|
||||||
boolean_f == Cyc_is_symbol(car(slow_lst)) && //
|
//boolean_f == Cyc_is_symbol(car(slow_lst)) && //
|
||||||
eq(car(slow_lst), car(fast_lst))) return boolean_t;
|
eq(car(slow_lst), car(fast_lst))) return boolean_t;
|
||||||
|
|
||||||
slow_lst = cdr(slow_lst);
|
slow_lst = cdr(slow_lst);
|
||||||
|
|
Loading…
Add table
Reference in a new issue