This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_match: Use 'z' length modifier to format sizes
authorKarl Williamson <khw@cpan.org>
Thu, 5 Mar 2020 03:13:27 +0000 (20:13 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 18 Mar 2020 23:38:19 +0000 (17:38 -0600)
This makes things easier to read.

pp_hot.c

index b95ac50..1c4ff48 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2966,9 +2966,9 @@ PP(pp_match)
     }
 
     if (RXp_MINLEN(prog) >= 0 && (STRLEN)RXp_MINLEN(prog) > len) {
-        DEBUG_r(PerlIO_printf(Perl_debug_log, "String shorter than min possible regex match (%"
-                                              UVuf " < %" IVdf ")\n",
-                                              (UV)len, (IV)RXp_MINLEN(prog)));
+        DEBUG_r(PerlIO_printf(Perl_debug_log,
+                "String shorter than min possible regex match (%zd < %zd)\n",
+                                                        len, RXp_MINLEN(prog)));
        goto nope;
     }