8000 merge with main · numpy/numpy@f6df05a · GitHub
[go: up one dir, main page]

Skip to content

Commit f6df05a

Browse files
committed
merge with main
1 parent 8fe8497 commit f6df05a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

numpy/core/src/multiarray/alloc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,10 @@ int uo_index=0; /* user_override index */
433433
static inline PyDataMem_Handler *
434434
_PyDataMem_GetHandler_Internal(PyObject *mem_handler)
435435
{
436-
#if (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x07030600)
437436
if (mem_handler == PyDataMem_DefaultHandler)
438437
// fast path for default allocator
439438
return &default_handler;
440-
#endif
439+
441440
PyDataMem_Handler *handler = (PyDataMem_Handler *)PyCapsule_GetPointer(
442441
mem_handler, "mem_handler");
443442
return handler;

0 commit comments

Comments
 (0)
0