Skip to content

Commit dad90ca

Browse files
committed
PyLong_FromLong -> PyLong_FromSsize_t
1 parent 4173ce0 commit dad90ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typevarobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ typeparam_reduce_anonymous(PyObject *self, PyObject *wr_owner)
489489
PyErr_SetString(PyExc_ValueError, "type param not found in owner __type_params__");
490490
goto done;
491491
}
492-
index = PyLong_FromLong(i);
492+
index = PyLong_FromSsize_t(i);
493493
if (index == NULL) {
494494
goto done;
495495
}

0 commit comments

Comments
 (0)