%.*s mandates an "int", says the C standard
Rafael Garcia-Suarez [Thu, 17 Apr 2008 10:03:04 +0000 (10:03 +0000)]
p4raw-id: //depot/perl@33704

gv.c

diff --git a/gv.c b/gv.c
index 2b381a6..5eb09c2 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -671,7 +671,7 @@ Perl_gv_fetchmethod_flags(pTHX_ HV *stash, const char *name, U32 flags)
            if (stash) {
                Perl_croak(aTHX_
                           "Can't locate object method \"%s\" via package \"%.*s\"",
-                          name, (STRLEN)HvNAMELEN_get(stash), HvNAME_get(stash));
+                          name, (int)HvNAMELEN_get(stash), HvNAME_get(stash));
            }
            else {
                STRLEN packlen;