Skip to content

Commit

Permalink
fix compile on freeBSD when using clang
Browse files Browse the repository at this point in the history
note:
* NULL is defined as nullptr.
> Note that the null pointer constant nullptr or any other
value of type std::nullptr_t cannot be converted to a pointer
 with reinterpret_cast: implicit conversion or static_cast
 should be used for this purpose.
ref: https://en.cppreference.com/w/cpp/language/reinterpret_cast
  • Loading branch information
Mizux committed Jul 18, 2020
1 parent 8ff505f commit f2a55f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cgl/src/CglLandP/CglLandPUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct Cuts
/** resize vector.*/
void resize(unsigned int i)
{
cuts_.resize(i, reinterpret_cast<OsiRowCut *> (NULL));
cuts_.resize(i, static_cast<OsiRowCut *> (NULL));
}
private:
/** Stores the number of cuts.*/
Expand Down

0 comments on commit f2a55f5

Please sign in to comment.