Skip to content

Commit f2a55f5

Browse files
committed
fix compile on freeBSD when using clang
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
1 parent 8ff505f commit f2a55f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cgl/src/CglLandP/CglLandPUtils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct Cuts
8585
/** resize vector.*/
8686
void resize(unsigned int i)
8787
{
88-
cuts_.resize(i, reinterpret_cast<OsiRowCut *> (NULL));
88+
cuts_.resize(i, static_cast<OsiRowCut *> (NULL));
8989
}
9090
private:
9191
/** Stores the number of cuts.*/

0 commit comments

Comments
 (0)