more replacements for the deprecated '<'
This commit is contained in:
parent
70ea45cdba
commit
6a3288a60e
19 changed files with 43 additions and 43 deletions
|
|
@ -149,7 +149,7 @@ proc selectWorker(w: ptr Worker; fn: WorkerProc; data: pointer): bool =
|
|||
proc cleanFlowVars(w: ptr Worker) =
|
||||
let q = addr(w.q)
|
||||
acquire(q.lock)
|
||||
for i in 0 .. <q.len:
|
||||
for i in 0 ..< q.len:
|
||||
GC_unref(cast[RootRef](q.data[i]))
|
||||
#echo "GC_unref"
|
||||
q.len = 0
|
||||
|
|
@ -543,7 +543,7 @@ proc sync*() =
|
|||
var toRelease = 0
|
||||
while true:
|
||||
var allReady = true
|
||||
for i in 0 .. <currentPoolSize:
|
||||
for i in 0 ..< currentPoolSize:
|
||||
if not allReady: break
|
||||
allReady = allReady and workersData[i].ready
|
||||
if allReady: break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue