diff --git a/src/wrap_constants.cpp b/src/wrap_constants.cpp index 77dbc25fde9af39aaf0103bb326e52190575913d..e313a340657c03ee2726988a5a77ce9aa2d19e4f 100644 --- a/src/wrap_constants.cpp +++ b/src/wrap_constants.cpp @@ -106,7 +106,7 @@ void pyopencl_expose_constants(py::module &m) #define DECLARE_EXC(NAME, BASE) \ static py::exception<pyopencl::error> CL##NAME(m, #NAME, BASE); - DECLARE_EXC(Error, NULL); + DECLARE_EXC(Error, nullptr); DECLARE_EXC(MemoryError, CLError.ptr()); DECLARE_EXC(LogicError, CLError.ptr()); DECLARE_EXC(RuntimeError, CLError.ptr());