diff options
author | mattip <matti.picus@gmail.com> | 2018-09-13 10:41:31 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-09-13 10:41:31 +0300 |
commit | 31a0d21d7ada4bbaebe02a54a6c4062662e4e2d0 (patch) | |
tree | 7458fb7b9c2ce168d258488e71e2267d6f9896e5 /numpy/core/include | |
parent | f1b2582eec20557660ab70f950004c39583fe54d (diff) | |
download | numpy-31a0d21d7ada4bbaebe02a54a6c4062662e4e2d0.tar.gz |
MAINT: make PyUFuncObject.version a const int
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. */ |