mirror of https://github.com/python/cpython.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().
This commit is contained in:
parent
18cfc1eea5
commit
4b65d5638c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue