summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-05-30 16:36:20 (GMT)
committerGitHub <noreply@github.com>2023-05-30 16:36:20 (GMT)
commit4b65d5638c607747e2f5b28ed1914e3c397b4097 (patch)
tree6f1ffaff2c22159789c0aa776903fc12a33f2503 /Python/fileutils.c
parent18cfc1eea569f0ce72ad403840c0e6cc5f81e1c2 (diff)
downloadcpython-4b65d5638c607747e2f5b28ed1914e3c397b4097.zip
cpython-4b65d5638c607747e2f5b28ed1914e3c397b4097.tar.gz
cpython-4b65d5638c607747e2f5b28ed1914e3c397b4097.tar.bz2
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().
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r--Python/fileutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index f137ee9..f262c3e 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -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