Skip to content

Commit 6fc7dc4

Browse files
committed
fixup! Optimize expand to avoid one unecessary sdiv
1 parent eaa3d61 commit 6fc7dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nditeration.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Base.@propagate_inbounds function expand(ndrange::NDRange{N}, groupidx::Integer,
9393
w = W.indices[I]
9494
length(b) * length(w)
9595
end
96-
CartesianIndices(Ind)[(groupidx-1)* prod(size(B)) + idx]
96+
CartesianIndices(Ind)[(groupidx-1)* prod(size(W)) + idx]
9797
end
9898

9999
Base.@propagate_inbounds function expand(ndrange::NDRange{N}, groupidx::CartesianIndex{N}, idx::Integer) where {N}

0 commit comments

Comments
 (0)