Skip to content

Commit a8ac8b1

Browse files
committed
Fixed one-line error
1 parent 7946c89 commit a8ac8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highs/util/HighsSparseMatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ void HighsSparseMatrix::addRows(const HighsSparseMatrix new_rows,
527527

528528
void HighsSparseMatrix::getCol(const HighsInt iCol, HighsInt& num_nz,
529529
HighsInt* index, double* value) const {
530-
assert(iCol >= 0 && iCol < this->num_row_);
530+
assert(iCol >= 0 && iCol < this->num_col_);
531531
num_nz = 0;
532532
if (this->isColwise()) {
533533
for (HighsInt iEl = this->start_[iCol]; iEl < this->start_[iCol + 1];

0 commit comments

Comments
 (0)