luispedro / mahotas

Computer Vision in Python
https://mahotas.rtfd.io
Other
839 stars 147 forks source link

Compile errors with numpy-1.7dev #26

Closed cgohlke closed 11 years ago

cgohlke commented 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.

luispedro commented 11 years ago

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.