Skip to content

Commit ab24bd3

Browse files
committed
mark getindex as inbounds in __elem_apply_loop_body
1 parent 8571459 commit ab24bd3

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
@@ -1097,7 +1097,7 @@ function __elem_apply_loop_body(idx_ref, fn_ref::F, res_ref, args_ref, L_ref) wh
10971097
res = res_ref[]
10981098
idx = idx_ref[] + 1
10991099

1100-
scalar_args = [@allowscalar(arg[idx]) for arg in args]
1100+
scalar_args = [@allowscalar((@inbounds arg[idx])) for arg in args]
11011101
@allowscalar res[idx] = fn(scalar_args...)
11021102

11031103
idx_ref[] = idx

0 commit comments

Comments
 (0)