Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ union_richcompare(PyObject *a, PyObject *b, int op)
static PyObject*
flatten_args(PyObject* args)
{
int arg_length = PyTuple_GET_SIZE(args);
int total_args = 0;
Py_ssize_t arg_length = PyTuple_GET_SIZE(args);
Py_ssize_t total_args = 0;
// Get number of total args once it's flattened.
for (Py_ssize_t i = 0; i < arg_length; i++) {
PyObject *arg = PyTuple_GET_ITEM(args, i);
Expand Down Expand Up @@ -434,7 +434,7 @@ _Py_Union(PyObject *args)
unionobject* result = NULL;

// Check arguments are unionable.
int nargs = PyTuple_GET_SIZE(args);
Py_ssize_t nargs = PyTuple_GET_SIZE(args);
for (Py_ssize_t iarg = 0; iarg < nargs; iarg++) {
PyObject *arg = PyTuple_GET_ITEM(args, iarg);
if (arg == NULL) {
Expand Down