diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-06-17 15:08:06 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-06-18 10:27:39 +0100 |
commit | dad3daefa2463ed7d5440cadd797288656a585f9 (patch) | |
tree | 3ff9170f83106707f3d49003a9d7f826a08a64c2 /cygwin | |
parent | e1052518d48fc4ba035c937b203ddad70d6ccb11 (diff) | |
download | perl-dad3daefa2463ed7d5440cadd797288656a585f9.tar.gz |
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.
Diffstat (limited to 'cygwin')
-rw-r--r-- | cygwin/cygwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |