Skip to content

Commit

Permalink
gh-39615: fix warning on return type mismatch (#101407)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Jan 30, 2023
1 parent 0ef92d9 commit c4170c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/_warnings.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ is_filename_to_skip(PyObject *filename, PyTupleObject *skip_file_prefixes)
for (Py_ssize_t idx = 0; idx < prefixes; ++idx)
{
PyObject *prefix = PyTuple_GET_ITEM(skip_file_prefixes, idx);
int found = PyUnicode_Tailmatch(filename, prefix, 0, -1, -1);
Py_ssize_t found = PyUnicode_Tailmatch(filename, prefix, 0, -1, -1);
if (found == 1) {
return true;
}
Expand Down

0 comments on commit c4170c3

Please sign in to comment.