mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
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 a new issue