From f2a55f5d91861aaa97e4dff559864772f0eb30ca Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Sat, 18 Jul 2020 23:40:46 +0200 Subject: [PATCH] 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 --- Cgl/src/CglLandP/CglLandPUtils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cgl/src/CglLandP/CglLandPUtils.hpp b/Cgl/src/CglLandP/CglLandPUtils.hpp index 11ddf273..778f6e25 100644 --- a/Cgl/src/CglLandP/CglLandPUtils.hpp +++ b/Cgl/src/CglLandP/CglLandPUtils.hpp @@ -85,7 +85,7 @@ struct Cuts /** resize vector.*/ void resize(unsigned int i) { - cuts_.resize(i, reinterpret_cast (NULL)); + cuts_.resize(i, static_cast (NULL)); } private: /** Stores the number of cuts.*/