From dad3daefa2463ed7d5440cadd797288656a585f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Wed, 17 Jun 2020 15:08:06 +0100 Subject: Fix cygwin Perl_utf16_to_utf8 parameter types Commit f46dcac2d383af532d3e8c014488fba83a514309 changed the I32 arguments of Perl_utf16_to_utf8() to Size_t and updated all callers that called it via the utf16_to_utf8 macro, but missed the fully-qualified call in cygwin.c. --- cygwin/cygwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cygwin') diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c index bdd80b3dfb..56094b9b95 100644 --- a/cygwin/cygwin.c +++ b/cygwin/cygwin.c @@ -302,7 +302,7 @@ XS(XS_Cygwin_win_to_posix_path) */ if (isutf8) { int what = absolute_flag ? CCP_WIN_W_TO_POSIX : CCP_WIN_W_TO_POSIX | CCP_RELATIVE; - int wlen = sizeof(wchar_t)*(len + 260 + 1001); + STRLEN wlen = sizeof(wchar_t)*(len + 260 + 1001); wchar_t *wpath = (wchar_t *) safemalloc(sizeof(wchar_t)*len); wchar_t *wbuf = (wchar_t *) safemalloc(wlen); if (!IN_BYTES) { @@ -333,7 +333,7 @@ XS(XS_Cygwin_win_to_posix_path) } /* utf16_to_utf8(*p, *d, bytlen, *newlen) */ posix_path = (char *) safemalloc(wlen*3); - Perl_utf16_to_utf8(aTHX_ (U8*)&wpath, (U8*)posix_path, (I32)wlen*2, (I32*)&len); + Perl_utf16_to_utf8(aTHX_ (U8*)&wpath, (U8*)posix_path, wlen*2, &len); /* wlen = wcsrtombs(NULL, (const wchar_t **)&wbuf, wlen, NULL); posix_path = (char *) safemalloc(wlen+1); -- cgit v1.2.1