summaryrefslogtreecommitdiff
path: root/numpy/core/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-08-10 16:54:21 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-08-11 09:21:16 -0600
commit415b5205050a737293abd97c2cb9e83c7da06e88 (patch)
treeff509961d71a6f9e0e1a51392cc13814495aed74 /numpy/core/function_base.py
parentfe0cb80d225508813de21e048c2f1529c2dc6a75 (diff)
downloadnumpy-415b5205050a737293abd97c2cb9e83c7da06e88.tar.gz
BUG: Fix a non-constant expression used as structure initializer.
PyObject_HashNotImplemented was being used to initialize the tp_hash slot in the PyArray_Type structure. In mingw32 (gcc version 3.4) that results in a compile error. Fix by initializing to zero, then setting to PyObject_HashNotImplemented when the module is loaded. The function initialization seems to work with more recent compilers, as the determination of what is considered 'non-constant' is left to the vendor and has changed.
Diffstat (limited to 'numpy/core/function_base.py')
0 files changed, 0 insertions, 0 deletions