[Python-checkins] gh-39615: fix warning on return type mismatch (#101407)
gpshead
webhook-mailer at python.org
Sun Jan 29 19:41:37 EST 2023
https://github.com/python/cpython/commit/c4170c36b0b54c10456f4b49245f570023a97f72
commit: c4170c36b0b54c10456f4b49245f570023a97f72
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: gpshead <greg at krypto.org>
date: 2023-01-29T16:41:27-08:00
summary:
gh-39615: fix warning on return type mismatch (#101407)
files:
M Python/_warnings.c
diff --git a/Python/_warnings.c b/Python/_warnings.c
index a8c1129356eb..e78f21644f37 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;
}
More information about the Python-checkins
mailing list