diff options
Diffstat (limited to 'numpy/core/include')
| -rw-r--r-- | numpy/core/include/numpy/ufuncobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h index 9d66e05a1..f04de088f 100644 --- a/numpy/core/include/numpy/ufuncobject.h +++ b/numpy/core/include/numpy/ufuncobject.h @@ -131,7 +131,7 @@ typedef struct _tagPyUFuncObject { int ntypes; /* Used to be unused field 'check_return', repurposed in 1.16 */ - int version; + const int version; /* The name of the ufunc */ const char *name; @@ -227,6 +227,8 @@ typedef struct _tagPyUFuncObject { } PyUFuncObject; +#define UFUNC_VERSION 1 + #include "arrayobject.h" /* Generalized ufunc; 0x0001 reserved for possible use as CORE_ENABLED */ /* the core dimension's size will be determined by the operands. */ |
