diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index cd052c660..29adc28e0 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -299,10 +299,10 @@ struct npy_format_descriptor_name::valu template struct npy_format_descriptor_name::value>> { -static constexpr auto name = const_name::value - || std::is_same::value>( + static constexpr auto name = const_name::value + || std::is_same::value>( const_name("complex") + const_name(), const_name("longcomplex") -); + ); }; template struct numpy_scalar_info {};