opnsense-ports/math/coinmp/files/patch-Cbc_src_CbcModel.cpp
Franco Fichtner cea20c69be */*: sync with upstream
Taken from: HardenedBSD
2018-01-05 22:33:19 +01:00

15 lines
734 B
C++

CbcModel.cpp:5322:41: error: reinterpret_cast from 'nullptr_t' to 'double *' is not allowed
clpSolver->setFakeObjective(reinterpret_cast<double *> (NULL));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Cbc/src/CbcModel.cpp.orig 2015-06-04 17:10:17 UTC
+++ Cbc/src/CbcModel.cpp
@@ -5319,7 +5319,7 @@ void CbcModel::branchAndBound(int doStatistics)
OsiClpSolverInterface * clpSolver
= dynamic_cast<OsiClpSolverInterface *> (solver_);
if (clpSolver)
- clpSolver->setFakeObjective(reinterpret_cast<double *> (NULL));
+ clpSolver->setFakeObjective(static_cast<double *> (NULL));
}
#endif
moreSpecialOptions_ = saveMoreSpecialOptions;