Btw., to add to all the confusion, `c_numpy.pxd` typedef's `npy_intp` as `int`, but don't believe that. It's actually defined as `npy_common.h` as an alias for `Py_intptr_t` which is practically always the same as `ssize_t`.