Skip to content

Commit 01e7477

Browse files
committed
Work around a bug on Julia 1.0
1 parent c2113f8 commit 01e7477

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OffsetArrays.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,8 @@ Base.searchsortedfirst(v::OffsetArray, x, lo::T, hi::T, o::Base.Ordering) where
378378
Base.searchsortedlast(v::OffsetArray, x, lo::T, hi::T, o::Base.Ordering) where T<:Integer =
379379
_safe_searchsortedlast(v, x, lo, hi, o)
380380

381+
if VERSION < v"1.1.0-DEV.783"
382+
Base.copyfirst!(dest::OffsetArray, src::OffsetArray) = (maximum!(parent(dest), parent(src)); return dest)
383+
end
381384

382385
end # module

0 commit comments

Comments
 (0)