Skip to content

Commit 4b65d56

Browse files
authored
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().
1 parent 18cfc1e commit 4b65d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/fileutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ _Py_device_encoding(int fd)
112112
}
113113

114114

115-
static size_t
115+
static int
116116
is_valid_wide_char(wchar_t ch)
117117
{
118118
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION

0 commit comments

Comments
 (0)