This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Use %z for displaying Size_t operands
authorKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 13:51:17 +0000 (06:51 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 13:57:50 +0000 (06:57 -0700)
This should fix [perl #132701]

locale.c

index b868bad..7cffe06 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -3655,8 +3655,8 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category)
                                                 & (PERL_UINTMAX_T) ~1) != '0')
         {
             Perl_croak(aTHX_
-             "panic: %s: %d: Corrupt utf8ness_cache=%s\nlen=%u,"
-             " inserted_name=%s, its_len=%u\n",
+             "panic: %s: %d: Corrupt utf8ness_cache=%s\nlen=%zu,"
+             " inserted_name=%s, its_len=%zu\n",
                 __FILE__, __LINE__,
                 PL_locale_utf8ness, strlen(PL_locale_utf8ness),
                 delimited, input_name_len_with_overhead);