Skip to content

Commit 2a48da7

Browse files
authored
Fix deprecation (#204)
1 parent 324867c commit 2a48da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diskarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function process_index(i::AbstractArray{<:CartesianIndex{N}}, cs, ::NoBatch) whe
149149
s = arraysize_from_chunksize.(csnow)
150150
v = view(CartesianIndices(s), i)
151151
cindmin, cindmax = if isempty(v)
152-
one(CartesianIndex{N}), zero(CartesianIndex{N})
152+
oneunit(CartesianIndex{N}), zero(CartesianIndex{N})
153153
else
154154
extrema(v)
155155
end

0 commit comments

Comments
 (0)