From 73c83905afc00259f5c0b3b9247b78c844263ddc Mon Sep 17 00:00:00 2001 From: narimiran Date: Mon, 20 Apr 2020 19:01:07 +0200 Subject: [PATCH] fix undeclared identifier in 'setimpl' --- lib/pure/collections/setimpl.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/collections/setimpl.nim b/lib/pure/collections/setimpl.nim index 35e030d00b..c3e05808f1 100644 --- a/lib/pure/collections/setimpl.nim +++ b/lib/pure/collections/setimpl.nim @@ -38,7 +38,7 @@ proc enlarge[A](s: var HashSet[A]) = newSeq(n, len(s.data) * growthFactor) swap(s.data, n) # n is now old seq for i in countup(0, high(n)): - if isFilledAndValid(n[i].hcode): + if isFilled(n[i].hcode): var j = -1 - rawGetKnownHC(s, n[i].key, n[i].hcode) rawInsert(s, s.data, n[i].key, n[i].hcode, j) @@ -125,7 +125,7 @@ proc enlarge[A](s: var OrderedSet[A]) = swap(s.data, n) while h >= 0: var nxt = n[h].next - if isFilled(n[h].hcode): # should be isFilledAndValid once tombstones are used + if isFilled(n[h].hcode): var j = -1 - rawGetKnownHC(s, n[h].key, n[h].hcode) rawInsert(s, s.data, n[h].key, n[h].hcode, j) h = nxt @@ -143,7 +143,7 @@ proc exclImpl[A](s: var OrderedSet[A], key: A): bool {.inline.} = result = true while h >= 0: var nxt = n[h].next - if isFilled(n[h].hcode): # should be isFilledAndValid once tombstones are used + if isFilled(n[h].hcode): if n[h].hcode == hc and n[h].key == key: dec s.counter result = false