Skip to content

Commit

Permalink
Assign instead of equals in assert
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist committed May 12, 2023
1 parent 292799f commit d3fc6fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/op/operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ void DStack<S>::forward(CMap const &x, Map &y) const
ir += op->rows();
ic += op->cols();
}
assert(ir = rows());
assert(ic = cols());
assert(ir == rows());
assert(ic == cols());
}

template <typename S>
Expand All @@ -394,8 +394,8 @@ void DStack<S>::adjoint(CMap const &y, Map &x) const
ir += op->rows();
ic += op->cols();
}
assert(ir = rows());
assert(ic = cols());
assert(ir == rows());
assert(ic == cols());
}

template <typename S>
Expand All @@ -411,8 +411,8 @@ void DStack<S>::inverse(CMap const &y, Map &x) const
ir += op->rows();
ic += op->cols();
}
assert(ir = rows());
assert(ic = cols());
assert(ir == rows());
assert(ic == cols());
}

template struct DStack<float>;
Expand Down

0 comments on commit d3fc6fe

Please sign in to comment.