From 6f13f4c10c48096d261fe1a79c7350b8b87c0f82 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Sun, 29 Jan 2023 21:36:39 +0000 Subject: [PATCH] gh-39615: fix warning on return type mismatch --- Python/_warnings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/_warnings.c b/Python/_warnings.c index a8c1129356eb50..e78f21644f372b 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; }