Skip to content

Commit 5f28c17

Browse files
Update src/gather.jl
Co-authored-by: Peter <[email protected]>
1 parent fdfcb6d commit 5f28c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gather.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function checkbounds_src(src, dims::Union{Int, Val}, ::Type{<:Any})
5353
return i -> checkbounds(Bool, src, ntuple(x -> Colon(), dims)..., i...)
5454
end
5555

56-
function checkbounds_src(src, dims::Int, ::Type{<:CartesianIndex})
56+
function checkbounds_src(src, dims::Union{Int, Val}, ::Type{<:CartesianIndex})
5757
return i -> checkbounds(Bool, src, ntuple(x -> Colon(), dims)..., i)
5858
end
5959

0 commit comments

Comments
 (0)