Skip to content

Commit c4170c3

Browse files
authored
gh-39615: fix warning on return type mismatch (#101407)
1 parent 0ef92d9 commit c4170c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)