Skip to content

Commit 9f308a4

Browse files
iritkatrielmdboom
authored andcommitted
pythongh-39615: fix warning on return type mismatch (python#101407)
1 parent 48d51e5 commit 9f308a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/_warnings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ is_filename_to_skip(PyObject *filename, PyTupleObject *skip_file_prefixes)
806806
for (Py_ssize_t idx = 0; idx < prefixes; ++idx)
807807
{
808808
PyObject *prefix = PyTuple_GET_ITEM(skip_file_prefixes, idx);
809-
int found = PyUnicode_Tailmatch(filename, prefix, 0, -1, -1);
809+
Py_ssize_t found = PyUnicode_Tailmatch(filename, prefix, 0, -1, -1);
810810
if (found == 1) {
811811
return true;
812812
}

0 commit comments

Comments
 (0)