Skip to content

Commit

Permalink
Fix missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe committed Sep 18, 2024
1 parent 9bc217c commit 2161e03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6563,11 +6563,11 @@ end
prev = getfield(x, i)
next = getfield(y, i)
ST = Core.Typeof(prev)
if !mutable_register(ST)
recursive_add(prev, next, f, forcelhs)
elseif !(ST <: Integer)
if mutable_register(ST) && !(ST <: Integer)
recursive_accumulate(prev, next, f)
prev
else
recursive_add(prev, next, f, forcelhs)
end
end)
end
Expand Down

0 comments on commit 2161e03

Please sign in to comment.