Skip to content

Commit

Permalink
pythongh-39615: fix warning on return type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jan 29, 2023
1 parent 0ef92d9 commit 6f13f4c
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 6f13f4c

Please sign in to comment.