Skip to content

Commit

Permalink
Update taichi/ir/expr.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: 彭于斌 <[email protected]>
  • Loading branch information
k-ye and archibate authored May 1, 2020
1 parent 7d9ab56 commit 61cb698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/ir/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void Expr::operator+=(const Expr &o) {
void Expr::operator-=(const Expr &o) {
if (this->atomic) {
(*this) = Expr::make<AtomicOpExpression>(
AtomicOpType::add, ptr_if_global(*this), -load_if_ptr(o));
AtomicOpType::sub, ptr_if_global(*this), load_if_ptr(o));
} else {
(*this) = (*this) - o;
}
Expand Down

0 comments on commit 61cb698

Please sign in to comment.