summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-01-30 00:41:27 (GMT)
committerGitHub <noreply@github.com>2023-01-30 00:41:27 (GMT)
commitc4170c36b0b54c10456f4b49245f570023a97f72 (patch)
tree6879635919d22aa0ff025419fa8f27ad8abfb302 /Python
parent0ef92d979311ba82d4c41b22ef38e12e1b08b13d (diff)
downloadcpython-c4170c36b0b54c10456f4b49245f570023a97f72.zip
cpython-c4170c36b0b54c10456f4b49245f570023a97f72.tar.gz
cpython-c4170c36b0b54c10456f4b49245f570023a97f72.tar.bz2
gh-39615: fix warning on return type mismatch (#101407)
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index a8c1129..e78f216 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -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;
}