freebsd-ports/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.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

16 lines
721 B
C++

--- Osi/test/OsiTestSolverInterfaceIO.cpp.orig 2018-04-16 06:54:20 UTC
+++ Osi/test/OsiTestSolverInterfaceIO.cpp
@@ -422,10 +422,10 @@ OsiTestSolverInterface::writeMps(const c
writer.setMpsData(*getMatrixByCol(), getInfinity(),
getColLower(), getColUpper(),
getObjCoefficients(),
- reinterpret_cast<const char *> (NULL) /*integrality*/,
+ nullptr /*integrality*/,
getRowLower(), getRowUpper(),
- reinterpret_cast<const char **> (NULL) /*colnam*/,
- reinterpret_cast<const char **> (NULL) /*rownam*/);
+ nullptr /*colnam*/,
+ nullptr /*rownam*/);
std::string fname = filename;
if (extension)
{ if (extension[0] != '\0' && extension[0] != '.')