Skip to content

Commit

Permalink
apply review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed May 25, 2022
1 parent 4ff1b09 commit c4cbcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ static inline PyDataMem_Handler *
_PyDataMem_GetHandler_Internal(PyObject *mem_handler)
{
#if (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x07030600)
if (default_allocator_policy)
if (PyDataMem_DefaultHandler == mem_handler)
// fast path for default allocator
return &default_handler;
#endif
Expand Down

0 comments on commit c4cbcb2

Please sign in to comment.