don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] (#17062)

This commit is contained in:
Andreas Rumpf 2021-02-17 00:07:37 +01:00 • committed by GitHub
commit e463a67c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ proc `=destroy`(t: var Tree) {.nodestroy.} =
let x = s.pop
if x.left != nil: s.add(x.left)
if x.right != nil: s.add(x.right)
dispose(x)
`=dispose`(x)
`=destroy`(s)
proc hasValue(self: var Tree, x: int32): bool =