BUG: fix windows pointer size problem

Fix windows test failure.
Funny, looks like `np.where` is not 64-bit clean. Good to know that.