opnsense-ports/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp
Franco Fichtner de6a699e83 */*: sync with upstream
Taken from: HardenedBSD
2018-04-15 23:00:06 +02: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] != '.')