Skip to content

Commit

Permalink
Remove use of static_cast in numpy compat header to allow use from C
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Jun 21, 2024
1 parent 53efb57 commit a27b10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/npy_2_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ PyArray_ImportNumPyAPI()
static inline void
PyDataType_SET_ELSIZE(PyArray_Descr *dtype, npy_intp size)
{
dtype->elsize = static_cast<int>(size);
dtype->elsize = (int)(size);
}

static inline npy_uint64
Expand Down

0 comments on commit a27b10e

Please sign in to comment.