File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
doc/source/reference/c-api
numpy/_core/include/numpy Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ PyArrayDescr_Type and PyArray_Descr
290
290
npy_intp alignment;
291
291
NpyAuxData *c_metadata;
292
292
npy_hash_t hash;
293
- void *reserved_null; // unused field, must be NULL .
293
+ void *reserved_null[2] ; // unused field, must be NULLed .
294
294
} PyArray_Descr;
295
295
296
296
Some dtypes have additional members which are accessible through
Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ typedef struct _PyArray_Descr {
610
610
/* Cached hash value (-1 if not yet computed). */
611
611
npy_hash_t hash ;
612
612
/* Unused slot (must be initialized to NULL) for future use */
613
- void * reserved_null ;
613
+ void * reserved_null [ 2 ] ;
614
614
} PyArray_Descr ;
615
615
616
616
#else /* 1.x and 2.x compatible version (only shared fields): */
@@ -639,7 +639,7 @@ typedef struct {
639
639
npy_intp alignment ;
640
640
PyObject * metadata ;
641
641
npy_hash_t hash ;
642
- void * reserved_null ;
642
+ void * reserved_null [ 2 ] ;
643
643
} _PyArray_DescrNumPy2 ;
644
644
645
645
#endif /* 1.x and 2.x compatible version */
@@ -662,7 +662,7 @@ typedef struct {
662
662
npy_intp alignment ;
663
663
PyObject * metadata ;
664
664
npy_hash_t hash ;
665
- void * reserved_null ;
665
+ void * reserved_null [ 2 ] ;
666
666
struct _arr_descr * subarray ;
667
667
PyObject * fields ;
668
668
PyObj
38F4
ect * names ;
You can’t perform that action at this time.
0 commit comments