This repository has been archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from JuliaStats/patch
Fix breakage related to introduction of Base.OneTo
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,16 +85,16 @@ function unsafe_getvalue_notnull(X::NullableArray, I::Int...) | |
end | ||
|
||
if VERSION >= v"0.5.0-dev+4697" | ||
function Base.checkindex(::Type{Bool}, inds::UnitRange, i::Nullable) | ||
function Base.checkindex(::Type{Bool}, inds::AbstractUnitRange, i::Nullable) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
davidagold
Author
Contributor
|
||
isnull(i) ? throw(NullException()) : checkindex(Bool, inds, get(i)) | ||
end | ||
|
||
function Base.checkindex{N}(::Type{Bool}, inds::UnitRange, I::NullableArray{Bool, N}) | ||
function Base.checkindex{N}(::Type{Bool}, inds::AbstractUnitRange, I::NullableArray{Bool, N}) | ||
anynull(I) && throw(NullException()) | ||
checkindex(Bool, inds, I.values) | ||
end | ||
|
||
function Base.checkindex{T<:Real}(::Type{Bool}, inds::UnitRange, I::NullableArray{T}) | ||
function Base.checkindex{T<:Real}(::Type{Bool}, inds::AbstractUnitRange, I::NullableArray{T}) | ||
anynull(I) && throw(NullException()) | ||
b = true | ||
for i in 1:length(I) | ||
|
did AbstractUnitRange exist at 4697?