Skip to content

Commit

Permalink
Add convert
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Aug 20, 2024
1 parent e80fe48 commit 61d9700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/schedulers/workstealing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function attempt_steal!()
for _ in 1:(4*nt) # Try to steal 4x nthread times
tid2 = Base.Scheduler.cong(UInt32(nt))
tid == tid2 && continue
t = QueueModule.steal!(queue_for(tid2))
t = QueueModule.steal!(queue_for(Int(tid2))) #TODO: Change types of things to avoid the convert
t !== nothing && return t
end
return nothing
Expand Down

0 comments on commit 61d9700

Please sign in to comment.