Closed cgohlke closed 11 years ago
When building against the latest numpy-1.7dev I get a few compile errors of the type error C2440: 'static_cast' : cannot convert from 'char *' to 'npy_intp * (line 99 of mahotas/_convex.cpp). It could be due to the recent change of the PyArray_DATA macro https://github.com/numpy/numpy/commit/abf0489b69496af2c9e19f8bf41356fa511e5f1a.
error C2440: 'static_cast' : cannot convert from 'char *' to 'npy_intp *
Thanks for the report. I don't know which way the numpy people are going to go with this change; particularly in the future.
I future proofed the code and fixed it.
Thanks.
When building against the latest numpy-1.7dev I get a few compile errors of the type
error C2440: 'static_cast' : cannot convert from 'char *' to 'npy_intp *
(line 99 of mahotas/_convex.cpp). It could be due to the recent change of the PyArray_DATA macro https://github.com/numpy/numpy/commit/abf0489b69496af2c9e19f8bf41356fa511e5f1a.