From a27b10e75ac9af0d2dcfaa7a25f92e463a0e266a Mon Sep 17 00:00:00 2001 From: Meagan Lang Date: Fri, 21 Jun 2024 16:38:42 -0400 Subject: [PATCH] Remove use of static_cast in numpy compat header to allow use from C --- include/rapidjson/npy_2_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/npy_2_compat.h b/include/rapidjson/npy_2_compat.h index eaab0cebe..4df22d059 100644 --- a/include/rapidjson/npy_2_compat.h +++ b/include/rapidjson/npy_2_compat.h @@ -145,7 +145,7 @@ PyArray_ImportNumPyAPI() static inline void PyDataType_SET_ELSIZE(PyArray_Descr *dtype, npy_intp size) { - dtype->elsize = static_cast(size); + dtype->elsize = (int)(size); } static inline npy_uint64