Skip to content

Commit

Permalink
Use CoinBuild::Type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
a-andre authored and svigerske committed Aug 1, 2024
1 parent 7f60778 commit 82d324e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClpModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ void ClpModel::addRows(int number, const double *rowLower,
// Add rows from a build object
int ClpModel::addRows(const CoinBuild &buildObject, bool tryPlusMinusOne, bool checkDuplicates)
{
CoinAssertHint(buildObject.type() == 0, "Looks as if both addRows and addCols being used"); // check correct
CoinAssertHint(buildObject.type() == CoinBuild::Type::Row, "Looks as if both addRows and addCols being used"); // check correct
int number = buildObject.numberRows();
int numberErrors = 0;
if (number) {
Expand Down Expand Up @@ -2409,7 +2409,7 @@ void ClpModel::addColumns(int number, const double *columnLower,
// Add columns from a build object
int ClpModel::addColumns(const CoinBuild &buildObject, bool tryPlusMinusOne, bool checkDuplicates)
{
CoinAssertHint(buildObject.type() == 1, "Looks as if both addRows and addCols being used"); // check correct
CoinAssertHint(buildObject.type() == CoinBuild::Type::Column, "Looks as if both addRows and addCols being used"); // check correct
int number = buildObject.numberColumns();
int numberErrors = 0;
if (number) {
Expand Down

0 comments on commit 82d324e

Please sign in to comment.