From 5532e65810d8bafa5f1da832834bff6f68b94298 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 16 Apr 2018 07:07:51 +0000 Subject: math/clp: Unbreak on 12 Added patches to prevent breakage due to reinterpret_cast(NULL). See the upstream bug report: https://github.com/coin-or/Clp/issues/7 Approved by: portmgr (port compliance, infrastructure) --- .../files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp (limited to 'math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp') diff --git a/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp b/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp new file mode 100644 index 000000000000..2a921f8eb236 --- /dev/null +++ b/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp @@ -0,0 +1,16 @@ +--- 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 (NULL) /*integrality*/, ++ nullptr /*integrality*/, + getRowLower(), getRowUpper(), +- reinterpret_cast (NULL) /*colnam*/, +- reinterpret_cast (NULL) /*rownam*/); ++ nullptr /*colnam*/, ++ nullptr /*rownam*/); + std::string fname = filename; + if (extension) + { if (extension[0] != '\0' && extension[0] != '.') -- cgit v1.2.3