Skip to content

Commit

Permalink
Fix binary division
Browse files Browse the repository at this point in the history
  • Loading branch information
tansongchen committed Nov 25, 2024
1 parent 2bfaba3 commit 29b1312
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function process(d, expr)
expr = postwalk(expr) do x
@match x begin
a_[idx_] => a in magic_names ? Symbol(a, idx) : :($a[begin + $idx])
(a_ = b_) => (push!(known_names, a); :($a = $b))
(a_ += b_) => a in known_names ? :($a += $b) : (push!(known_names, a); :($a = $b))
(a_ -= b_) => a in known_names ? :($a -= $b) : (push!(known_names, a); :($a = -$b))
TaylorScalar(v_) => :(TaylorScalar(tuple($([Symbol(v, idx) for idx in 0:d[:P]]...))))
Expand Down

0 comments on commit 29b1312

Please sign in to comment.