Skip to content

Commit 8f6b336

Browse files
authored
retain storagetype in _ind_intersect (#161)
1 parent e0f754c commit 8f6b336

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/implementations/truncation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ end
120120

121121
# when one of the ind selections is a bitvector, have to handle differently
122122
function _ind_intersect(A::AbstractVector{Bool}, B::AbstractVector)
123-
result = falses(length(A))
123+
result = fill!(similar(A), false)
124124
result[B] .= @view A[B]
125125
return result
126126
end

0 commit comments

Comments
 (0)