Cast generated C code to npy_intp

According to comments on PR #31.