Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

Commit 97cee34

Browse files
committed
Minor tweak
1 parent 6314658 commit 97cee34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/base.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,16 @@ Base.@propagate_inbounds function update_state!(
137137
empty!(state.previous_cumsum)
138138
upper = length(state.values)
139139
lower = 1 + num_values_to_remove
140-
if (upper - lower) >= 0 # i.e. we have a non-zero range
140+
@inbounds if (upper - lower) >= 0 # i.e. we have a non-zero range
141141
i = upper
142-
accumulation = @inbounds(state.values[i])
142+
accumulation = state.values[i]
143143
while true
144144
push!(state.previous_cumsum, accumulation)
145145
i -= 1
146146
i >= lower || break
147147
# If we were to use a mutating operation here, then we'd have to introduce
148148
# a copy above. So there is no drawback to using the non-mutating Op.
149-
accumulation = Op(@inbounds(state.values[i]), accumulation)
149+
accumulation = Op(state.values[i], accumulation)
150150
end
151151
end
152152

0 commit comments

Comments
 (0)