File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
numpy/_core/include/numpy Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -609,6 +609,8 @@ typedef struct _PyArray_Descr {
609
609
PyObject * metadata ;
610
610
/* Cached hash value (-1 if not yet computed). */
611
611
npy_hash_t hash ;
612
+ /* Unused slot (must be initialized to NULL) for future use */
613
+ void * reserved_null ;
612
614
} PyArray_Descr ;
613
615
614
616
#else /* 1.x and 2.x compatible version (only shared fields): */
@@ -637,6 +639,7 @@ typedef struct {
637
639
npy_intp alignment ;
638
640
PyObject * metadata ;
639
641
npy_hash_t hash ;
642
+ void * reserved_null ;
640
643
} _PyArray_DescrNumPy2 ;
641
644
642
645
#endif /* 1.x and 2.x compatible version */
@@ -659,6 +662,7 @@ typedef struct {
659
662
npy_intp alignment ;
660
663
PyObject * metadata ;
661
664
npy_hash_t hash ;
665
+ void * reserved_null ;
662
666
struct _arr_descr * subarray ;
663
667
PyObject * fields ;
664
668
PyObject * names ;
You can’t perform that action at this time.
0 commit comments