From da953eade0c24ddfca3daf8ffcb31b5ec4e43ead Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 30 May 2023 17:56:28 +0200 Subject: [PATCH] gh-80064: Fix is_valid_wide_char() return type Return a classical int, rather than size_t. --- Python/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/fileutils.c b/Python/fileutils.c index f137ee936502c1..f262c3e095c9ba 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -112,7 +112,7 @@ _Py_device_encoding(int fd) } -static size_t +static int is_valid_wide_char(wchar_t ch) { #ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION