Fix `ValueError: Buffer dtype mismatch` on win-amd64