Use a separate Py_ssize_t var instead of casting an int pointer as a Py_ssize_t pointer.