more replacements for the deprecated '<'
This commit is contained in:
parent
70ea45cdba
commit
6a3288a60e
19 changed files with 43 additions and 43 deletions
|
|
@ -257,7 +257,7 @@ proc allprefixedAux[T](c: CritBitTree[T], key: string; longestMatch: bool): Node
|
|||
p = p.child[dir]
|
||||
if q.byte < key.len: top = p
|
||||
if not longestMatch:
|
||||
for i in 0 .. <key.len:
|
||||
for i in 0 ..< key.len:
|
||||
if p.key[i] != key[i]: return
|
||||
result = top
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ template delImpl() {.dirty.} =
|
|||
delImplIdx(t, i)
|
||||
|
||||
template clearImpl() {.dirty.} =
|
||||
for i in 0 .. <t.data.len:
|
||||
for i in 0 ..< t.data.len:
|
||||
when compiles(t.data[i].hcode): # CountTable records don't contain a hcode
|
||||
t.data[i].hcode = 0
|
||||
t.data[i].key = default(type(t.data[i].key))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue