Skip to content

Commit

Permalink
Replace reinterpret_cast of NULL with static_cast
Browse files Browse the repository at this point in the history
On FreeBSD and OpenBSD when using clang, `NULL` is a typedef to `nullptr`.

This same issue is described back in July of 2020 in #319
  • Loading branch information
ron-at-swgy authored and svigerske committed Jun 4, 2024
1 parent a58efff commit ca088df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CbcModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6255,7 +6255,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;
Expand Down

0 comments on commit ca088df

Please sign in to comment.