ports/math/clp/files/patch-Clp_src_ClpModel.cpp
Yuri Victorovich 5532e65810 math/clp: Unbreak on 12
Added patches to prevent breakage due to reinterpret_cast<SomeType*>(NULL).
See the upstream bug report: https://github.com/coin-or/Clp/issues/7

Approved by:	portmgr (port compliance, infrastructure)
2018-04-16 07:07:51 +00:00

11 lines
584 B
C++

--- Clp/src/ClpModel.cpp.orig 2018-04-16 06:43:28 UTC
+++ Clp/src/ClpModel.cpp
@@ -3845,7 +3845,7 @@ ClpModel::writeMps(const char *filename,
writer.setMpsData(*(matrix_->getPackedMatrix()), COIN_DBL_MAX,
getColLower(), getColUpper(),
objective,
- reinterpret_cast<const char*> (NULL) /*integrality*/,
+ nullptr /*integrality*/,
getRowLower(), getRowUpper(),
columnNames, rowNames);
// Pass in array saying if each variable integer