Skip to content

Commit 1102ff4

Browse files
committed
mark getindex as inbounds in __elem_apply_loop_body
1 parent a9e8bed commit 1102ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TracedUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ function __elem_apply_loop_body(idx_ref, fn_ref::F, res_ref, args_ref, L_ref) wh
10991099
res = res_ref[]
11001100
idx = idx_ref[] + 1
11011101

1102-
scalar_args = [@allowscalar(arg[idx]) for arg in args]
1102+
scalar_args = [@allowscalar((@inbounds arg[idx])) for arg in args]
11031103
@allowscalar res[idx] = fn(scalar_args...)
11041104

11051105
idx_ref[] = idx

0 commit comments

Comments
 (0)