I've tested this on Win7 as well and using np.iinfo(np.int64).min + 1 is not good because of the wraparound. The magic numbers supplied worked fine on both OSX and Windows that I've tested.