Use `np.npy_intp` for this. That adapts to the target platform. See [here](https://github.com/scikit-learn/scikit-learn/wiki/C-integer-types%3A-the-missing-manual).