summaryrefslogtreecommitdiff
path: root/math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-04-16 07:07:51 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-04-16 07:07:51 +0000
commit5532e65810d8bafa5f1da832834bff6f68b94298 (patch)
treed822bd847ae4824e35e567e2b062d638e874a659 /math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp
parent- Update to 0.4-13 (diff)
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)
Notes
Notes: svn path=/head/; revision=467459
Diffstat (limited to 'math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp')
-rw-r--r--math/clp/files/patch-Osi_test_OsiTestSolverInterfaceIO.cpp16
1 files changed, 16 insertions, 0 deletions
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<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] != '.')