Skip to content

Commit 64a0edf

Browse files
nsajkojakobnissen
authored andcommitted
two more
1 parent 49d3f1c commit 64a0edf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/construction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ MemoryKind(::Type{<:ContiguousSubArray{T, N, P}}) where {T, N, P} = MemoryKind(P
5252
function MemoryView(s::ContiguousSubArray{T, N, P}) where {T, N, P}
5353
memview = MemoryView(parent(s)::P)
5454
inds = only(parentindices(s))
55-
@boundscheck checkbounds(memview.ref.mem, inds)
55+
@boundscheck checkbounds_lightboundserror(memview.ref.mem, inds)
5656
return @inbounds memview[inds]
5757
end

src/experimental.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ julia> split_at(MemoryView(Int8[1, 2, 3]), 4)
7878
```
7979
"""
8080
function split_at(v::MemoryView, i::Int)
81-
@boundscheck checkbounds(1:(lastindex(v) + 1), i)
81+
@boundscheck checkbounds_lightboundserror(1:(lastindex(v) + 1), i)
8282
return (@inbounds(truncate(v, i - 1)), @inbounds(truncate_start(v, i)))
8383
end
8484

0 commit comments

Comments
 (0)