summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-01-03 21:37:08 -0700
committerKarl Williamson <khw@cpan.org>2020-01-03 21:55:15 -0700
commitf46dcac2d383af532d3e8c014488fba83a514309 (patch)
treee4c0b37fe212585c09df74fcf2a6e37987812421 /utf8.c
parent1b292063004c9bbdfe307aadd8beb72df25e7c2f (diff)
downloadperl-f46dcac2d383af532d3e8c014488fba83a514309.tar.gz
utf8.c: Change parameter types of internal fcns
These generated warnings on certain platform builds, and weren't the best types for the purpose anyway.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 7db7dd35a6..94fcba99d0 100644
--- a/utf8.c
+++ b/utf8.c
@@ -2716,7 +2716,7 @@ Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *lenp)
* Do not use in-place. We optimize for native, for obvious reasons. */
U8*
-Perl_utf16_to_utf8(pTHX_ U8* p, U8* d, I32 bytelen, I32 *newlen)
+Perl_utf16_to_utf8(pTHX_ U8* p, U8* d, Size_t bytelen, Size_t *newlen)
{
U8* pend;
U8* dstart = d;
@@ -2793,7 +2793,7 @@ Perl_utf16_to_utf8(pTHX_ U8* p, U8* d, I32 bytelen, I32 *newlen)
/* Note: this one is slightly destructive of the source. */
U8*
-Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8* d, I32 bytelen, I32 *newlen)
+Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8* d, Size_t bytelen, Size_t *newlen)
{
U8* s = (U8*)p;
U8* const send = s + bytelen;