Made the Python bindings not use deprecated NumPy 1.7 API.
This commit is contained in:
@@ -510,7 +510,11 @@ static void arrayinterface_common(PyArrayInterface *s, int mtype)
|
||||
assert(0);
|
||||
}
|
||||
|
||||
#ifdef NPY_1_7_API_VERSION
|
||||
s->flags = NPY_ARRAY_WRITEABLE | NPY_ARRAY_NOTSWAPPED;
|
||||
#else
|
||||
s->flags = NPY_WRITEABLE | NPY_NOTSWAPPED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static PyObject *cvmat_array_struct(cvmat_t *cva)
|
||||
|
Reference in New Issue
Block a user