Skip to content

Commit da953ea

Browse files
committed
pythongh-80064: Fix is_valid_wide_char() return type
Return a classical int, rather than size_t.
1 parent 0656d23 commit da953ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/fileutils.c

Lines changed: 1 addition & 1 deletion
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)