mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ _Py_device_encoding(int fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static size_t
|
static int
|
||||||
is_valid_wide_char(wchar_t ch)
|
is_valid_wide_char(wchar_t ch)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue