Skip to content

Commit e64672e

Browse files
authored
Merge pull request #15 from KristofferC/patch-1
fix removal of __subarray_throw_boundserror on 1.5
2 parents 1b338b4 + 28027e8 commit e64672e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ssubarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function SSubArray(indexing::Any, ::Val{:dynamic_fixed_false}, parent::Union{Sta
3838
return SubArray(indexing, parent, indices, idsum)
3939
end
4040

41-
if VERSION < v"1.1"
41+
if !isdefined(Base, :__subarray_throw_boundserror)
4242
@noinline __subarray_throw_boundserror(::Type{T}, parent, indices, offset1, stride1, I) where {T} =
4343
throw(BoundsError(T(parent, indices, offset1, stride1), I))
4444
else

0 commit comments

Comments
 (0)