From: Victor Stinner Date: Tue, 30 May 2023 16:36:20 +0000 (+0200) Subject: gh-80064: Fix is_valid_wide_char() return type (#105099) X-Git-Tag: v3.13.0a1~1973 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b65d5638c607747e2f5b28ed1914e3c397b4097;p=thirdparty%2FPython%2Fcpython.git gh-80064: Fix is_valid_wide_char() return type (#105099) Return a classical int, rather than size_t. The size_t type was kept from copied/pasted code related to mbstowcs(). --- diff --git a/Python/fileutils.c b/Python/fileutils.c index f137ee936502..f262c3e095c9 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