Skip to content

Commit

Permalink
Merge pull request #53 from guimarqu/master
Browse files Browse the repository at this point in the history
assert the semaphore idx is not nothing
  • Loading branch information
rrsadykov authored Jan 26, 2024
2 parents 795a492 + e1ab8c8 commit 11a8eaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pcsr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function addpartition!(pcsc::PackedCSC{K,T}, prev_sem_id::Int) where {K,T}
for i in nb_semaphores:-1:(prev_sem_id+1)
moved_sem_pos = pcsc.semaphores[i]
semaphores[i+1] = semaphores[i]
@assert !isnothing(moved_sem_pos)
pcsc.pma.array[moved_sem_pos] = (sem_key, T(i+1))
end
end
Expand Down

0 comments on commit 11a8eaf

Please sign in to comment.