Skip to content

Commit

Permalink
Inline set_index!(::BitArray, ::Any, ::Int)
Browse files Browse the repository at this point in the history
Addresses #13914
  • Loading branch information
carlobaldassi committed Nov 11, 2015
1 parent 5e12bc8 commit 73242ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/bitarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ end
end
end

setindex!(B::BitArray, x, i::Int) = (checkbounds(B, i); unsafe_setindex!(B, x, i))
@inline setindex!(B::BitArray, x, i::Int) = (checkbounds(B, i); unsafe_setindex!(B, x, i))
@inline function unsafe_setindex!(B::BitArray, x, i::Int)
unsafe_bitsetindex!(B.chunks, convert(Bool, x), i)
return B
Expand Down

0 comments on commit 73242ec

Please sign in to comment.