diff options
author | Chris Brown <chris@thebrown.net> | 2020-09-15 14:35:14 +0100 |
---|---|---|
committer | Chris Brown <chris@thebrown.net> | 2020-09-15 14:36:05 +0100 |
commit | ff44f113101814b6321906a312fe9f0db1b2f1e6 (patch) | |
tree | b2d80bfb59d2bbe6dccf6a39a8adaa12358e911f | |
parent | 7b7e7fe4936a0cd8b1278ebc3169463e392a486e (diff) | |
download | numpy-ff44f113101814b6321906a312fe9f0db1b2f1e6.tar.gz |
BUG: Set deprecated fields to null in PyArray_InitArrFuncs
Initializing the deprecated fields to null ensures that if a
user sets them to their own function pointers, this can be
detected and the warning about using deprecated fields can be
printed.
-rw-r--r-- | numpy/core/src/multiarray/usertypes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/usertypes.c b/numpy/core/src/multiarray/usertypes.c index 6b6c6bd9d..d75fd3130 100644 --- a/numpy/core/src/multiarray/usertypes.c +++ b/numpy/core/src/multiarray/usertypes.c @@ -127,6 +127,9 @@ PyArray_InitArrFuncs(PyArray_ArrFuncs *f) f->scalarkind = NULL; f->cancastscalarkindto = NULL; f->cancastto = NULL; + f->fastclip = NULL; + f->fastputmask = NULL; + f->fasttake = NULL; } |