fix a typo (#18736)

This commit is contained in:
flywind 2021-08-23 21:05:22 +08:00 • committed by GitHub
commit 8a8267e2bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]) =
if t.n.len > 0: if t.n.len > 0:
let oldFlags = symWithFlags.flags let oldFlags = symWithFlags.flags
# Hack to prevent endless recursion # Hack to prevent endless recursion
# xxx intead, use a hash table to indicate we've already visited a type, which # xxx instead, use a hash table to indicate we've already visited a type, which
# would also be more efficient. # would also be more efficient.
symWithFlags.flags.excl {sfAnon, sfGenSym} symWithFlags.flags.excl {sfAnon, sfGenSym}
hashTree(c, t.n, flags + {CoHashTypeInsideNode}) hashTree(c, t.n, flags + {CoHashTypeInsideNode})