File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,10 @@ end
140
140
Is:: Vararg{<:Any,N} ) where {N}
141
141
quote
142
142
i = @linearidx dest
143
- @inbounds begin
144
- is = CartesianIndices (idims)[i]
145
- @nexprs $ N i -> I_i = Is[i][is[i]]
146
- dest[i] = @ncall $ N getindex src i -> I_i
147
- end
143
+ is = @inbounds CartesianIndices (idims)[i]
144
+ @nexprs $ N i -> I_i = @inbounds (Is[i][is[i]])
145
+ val = @ncall $ N getindex src i -> I_i
146
+ @inbounds dest[i] = val
148
147
return
149
148
end
150
149
end
169
168
quote
170
169
i = linear_index (ctx)
171
170
i > len && return
172
- @inbounds begin
173
- is = CartesianIndices (idims)[i]
174
- @nexprs $ N i -> I_i = Is[i][is[i]]
175
- @ncall $ N setindex! dest src[i] i -> I_i
176
- end
171
+ is = @inbounds CartesianIndices (idims)[i]
172
+ @nexprs $ N i -> I_i = @inbounds (Is[i][is[i]])
173
+ @ncall $ N setindex! dest src[i] i -> I_i
177
174
return
178
175
end
179
176
end
You can’t perform that action at this time.
0 commit comments