Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Jan 18, 2017
1 parent 921b65b commit 4b0a0f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ else
end

function Base.checkbounds(::Type{Bool}, sz::Int, I::NullableVector{Bool})
anynull(I) && throw(NullException())
anynull(I) && throw(NullException())
length(I) == sz
end
end

function Base.checkbounds{T<:Real}(::Type{Bool}, sz::Int, I::NullableArray{T})
inbounds = true
anynull(I) && throw(NullException())
for i in 1:length(I)
anynull(I) && throw(NullException())
for i in 1:length(I)
@inbounds v = unsafe_getvalue_notnull(I, i)
inbounds &= checkbounds(Bool, sz, v)
end
Expand Down

0 comments on commit 4b0a0f6

Please sign in to comment.