Fix stack overflow when taking hashcode of hashtables with circular structure
parent
77cbc56873
commit
2454135fd3
|
@ -168,8 +168,10 @@ M: hashtable equal?
|
||||||
} cond ;
|
} cond ;
|
||||||
|
|
||||||
M: hashtable hashcode*
|
M: hashtable hashcode*
|
||||||
dup assoc-size 1 number=
|
[
|
||||||
[ assoc-hashcode ] [ nip assoc-size ] if ;
|
dup assoc-size 1 number=
|
||||||
|
[ assoc-hashcode ] [ nip assoc-size ] if
|
||||||
|
] recursive-hashcode ;
|
||||||
|
|
||||||
! Default method
|
! Default method
|
||||||
M: assoc new-assoc drop <hashtable> ;
|
M: assoc new-assoc drop <hashtable> ;
|
||||||
|
|
Loading…
Reference in New Issue