Skip to content

Commit 050278f

Browse files
committed
fix warning
1 parent ef473a7 commit 050278f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highs/ipm/hipo/ipm/Model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ Int Model::loadIntoIpx(ipx::LpSolver& lps) const {
539539

540540
void Model::multWithoutSlack(double alpha, const std::vector<double>& x,
541541
std::vector<double>& y, bool trans) const {
542-
assert(x.size() == trans ? m_ : n_orig_);
543-
assert(y.size() == trans ? n_orig_ : m_);
542+
assert(x.size() == (trans ? m_ : n_orig_));
543+
assert(y.size() == (trans ? n_orig_ : m_));
544544

545545
if (trans) {
546546
for (Int col = 0; col < n_orig_; ++col) {

0 commit comments

Comments
 (0)