summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-10-16 14:15:22 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-10-16 14:15:22 -0600
commitf4eaba79790e18711b259ce8870b7966cbaa88a5 (patch)
tree31fd4d4b00dcd1a5b165e94d82f1d49edef1c149 /numpy/core
parent16236e27f93b3a1b3bf6a58750fdaec68b224420 (diff)
downloadnumpy-f4eaba79790e18711b259ce8870b7966cbaa88a5.tar.gz
MAINT: Define NPY_NO_DEPRECATED_API in struct_ufunc_test.c.src
Removes a compile warning and makes the function use proper macro replacements. Also fix a pointer type mismatch warning.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/umath/struct_ufunc_test.c.src4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/src/umath/struct_ufunc_test.c.src b/numpy/core/src/umath/struct_ufunc_test.c.src
index 517925570..de8838b90 100644
--- a/numpy/core/src/umath/struct_ufunc_test.c.src
+++ b/numpy/core/src/umath/struct_ufunc_test.c.src
@@ -1,3 +1,5 @@
+#define NPY_NO_DEPRECATED_API NPY_API_VERSION
+
#include "Python.h"
#include "math.h"
#include "numpy/ndarraytypes.h"
@@ -106,7 +108,7 @@ PyMODINIT_FUNC initstruct_ufunc_test(void)
dtypes[1] = dtype;
dtypes[2] = dtype;
- PyUFunc_RegisterLoopForDescr(add_triplet,
+ PyUFunc_RegisterLoopForDescr((PyUFuncObject *)add_triplet,
dtype,
&add_uint64_triplet,
dtypes,