Skip to content

Commit

Permalink
Merge pull request JuliaLang#204 from JuliaStats/nl/checkindex
Browse files Browse the repository at this point in the history
More precise VERSION check for checkindex()
  • Loading branch information
nalimilan committed Jul 3, 2016
2 parents cc69940 + f3cc542 commit 96f6aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function Base.to_index(A::DataArray)
end


if VERSION >= v"0.5.0-"
if isdefined(Base, :checkindex)
Base.checkindex(::Type{Bool}, ::UnitRange, ::NAtype) =
throw(NAException("cannot index an array with a DataArray containing NA values"))
else
Expand Down

0 comments on commit 96f6aa0

Please sign in to comment.