mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
gh-39615: fix warning on return type mismatch (#101407)
This commit is contained in:
parent
0ef92d9793
commit
c4170c36b0
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ is_filename_to_skip(PyObject *filename, PyTupleObject *skip_file_prefixes)
|
||||||
for (Py_ssize_t idx = 0; idx < prefixes; ++idx)
|
for (Py_ssize_t idx = 0; idx < prefixes; ++idx)
|
||||||
{
|
{
|
||||||
PyObject *prefix = PyTuple_GET_ITEM(skip_file_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) {
|
if (found == 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue