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().
This commit is contained in:
Victor Stinner 2023-05-30 18:36:20 +02:00 committed by GitHub
parent 18cfc1eea5
commit 4b65d5638c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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