From dc782ba969afb28fa56412b3de8f1c9366c4af71 Mon Sep 17 00:00:00 2001 From: "Steve R. Sun" <1638650145@qq.com> Date: Thu, 30 Dec 2021 12:18:51 +0800 Subject: [PATCH] Reformat of numpy.h --- include/pybind11/numpy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {};