diff options
-rw-r--r-- | dump.c | 3 | ||||
-rw-r--r-- | op.c | 6 | ||||
-rw-r--r-- | pp_hot.c | 3 | ||||
-rw-r--r-- | pp_sys.c | 3 | ||||
-rw-r--r-- | regcomp.c | 6 | ||||
-rw-r--r-- | util.c | 3 |
6 files changed, 16 insertions, 8 deletions
@@ -1188,8 +1188,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo I32 ix; for (ix = 1; ix <= AvFILL(pad_name); ix++) { - if (SvPOK(pname[ix])) #ifdef IV_IS_QUAD + if (SvPOK(pname[ix])) Perl_dump_indent(aTHX_ level, /* %5d below is enough whitespace. */ file, "%5d. 0x%" PERL_PRIx64 " (%s\"%s\" %" PERL_PRId64 "-%" PERL_PRId64 ")\n", @@ -1199,6 +1199,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo (IV)SvNVX(pname[ix]), (IV)SvIVX(pname[ix])); #else + if (SvPOK(pname[ix])) Perl_dump_indent(aTHX_ level, /* %5d below is enough whitespace. */ file, "%5d. 0x%lx (%s\"%s\" %ld-%ld)\n", @@ -4798,12 +4798,13 @@ Perl_ck_fun(pTHX_ OP *o) char *name = SvPVx(((SVOP*)kid)->op_sv, n_a); OP *newop = newAVREF(newGVOP(OP_GV, 0, gv_fetchpv(name, TRUE, SVt_PVAV) )); - if (ckWARN(WARN_SYNTAX)) #ifdef IV_IS_QUAD + if (ckWARN(WARN_SYNTAX)) Perl_warner(aTHX_ WARN_SYNTAX, "Array @%s missing the @ in argument %" PERL_PRId64 " of %s()", name, (IV)numargs, PL_op_desc[type]); #else + if (ckWARN(WARN_SYNTAX)) Perl_warner(aTHX_ WARN_SYNTAX, "Array @%s missing the @ in argument %ld of %s()", name, (long)numargs, PL_op_desc[type]); @@ -4824,12 +4825,13 @@ Perl_ck_fun(pTHX_ OP *o) char *name = SvPVx(((SVOP*)kid)->op_sv, n_a); OP *newop = newHVREF(newGVOP(OP_GV, 0, gv_fetchpv(name, TRUE, SVt_PVHV) )); - if (ckWARN(WARN_SYNTAX)) #ifdef IV_IS_QUAD + if (ckWARN(WARN_SYNTAX)) Perl_warner(aTHX_ WARN_SYNTAX, "Hash %%%s missing the %% in argument %" PERL_PRId64 " of %s()", name, (IV)numargs, PL_op_desc[type]); #else + if (ckWARN(WARN_SYNTAX)) Perl_warner(aTHX_ WARN_SYNTAX, "Hash %%%s missing the %% in argument %ld of %s()", name, (long)numargs, PL_op_desc[type]); @@ -588,11 +588,12 @@ PP(pp_rv2hv) dTARGET; if (SvTYPE(hv) == SVt_PVAV) hv = avhv_keys((AV*)hv); - if (HvFILL(hv)) #ifdef IV_IS_QUAD + if (HvFILL(hv)) Perl_sv_setpvf(aTHX_ TARG, "%" PERL_PRId64 "/%" PERL_PRId64, (Quad_t)HvFILL(hv), (Quad_t)HvMAX(hv) + 1); #else + if (HvFILL(hv)) Perl_sv_setpvf(aTHX_ TARG, "%ld/%ld", (long)HvFILL(hv), (long)HvMAX(hv) + 1); #endif @@ -816,12 +816,13 @@ PP(pp_untie) if (ckWARN(WARN_UNTIE)) { MAGIC * mg ; if (mg = SvTIED_mg(sv, how)) { - if (mg && SvREFCNT(SvRV(mg->mg_obj)) > 1) #ifdef IV_IS_QUAD + if (mg && SvREFCNT(SvRV(mg->mg_obj)) > 1) Perl_warner(aTHX_ WARN_UNTIE, "untie attempted while %" PERL_PRIu64 " inner references still exist", (UV)SvREFCNT(SvRV(mg->mg_obj)) - 1 ) ; #else + if (mg && SvREFCNT(SvRV(mg->mg_obj)) > 1) Perl_warner(aTHX_ WARN_UNTIE, "untie attempted while %lu inner references still exist", (unsigned long)SvREFCNT(SvRV(mg->mg_obj)) - 1 ) ; @@ -2834,10 +2834,11 @@ S_regclassutf8(pTHX) if (range) { if (lastvalue > value) FAIL("invalid [] range in regexp"); - if (!SIZE_ONLY) #ifdef UV_IS_QUAD + if (!SIZE_ONLY) Perl_sv_catpvf(aTHX_ listsv, "%04" PERL_PRIx64 "\t%04" PERL_PRIx64 "\n", (UV)lastvalue, (UV)value); #else + if (!SIZE_ONLY) Perl_sv_catpvf(aTHX_ listsv, "%04x\t%04x\n", lastvalue, value); #endif lastvalue = value; @@ -2851,10 +2852,11 @@ S_regclassutf8(pTHX) range = 1; continue; /* do it next time */ } - if (!SIZE_ONLY) #ifdef UV_IS_QUAD + if (!SIZE_ONLY) Perl_sv_catpvf(aTHX_ listsv, "%04" PERL_PRIx64 "\n", (UV)value); #else + if (!SIZE_ONLY) Perl_sv_catpvf(aTHX_ listsv, "%04x\n", value); #endif } @@ -1405,11 +1405,12 @@ Perl_mess(pTHX_ const char *pat, va_list *args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); if (!SvCUR(sv) || *(SvEND(sv) - 1) != '\n') { dTHR; - if (PL_curcop->cop_line) #ifdef IV_IS_QUAD + if (PL_curcop->cop_line) Perl_sv_catpvf(aTHX_ sv, " at %_ line %" PERL_PRId64, GvSV(PL_curcop->cop_filegv), (IV)PL_curcop->cop_line); #else + if (PL_curcop->cop_line) Perl_sv_catpvf(aTHX_ sv, " at %_ line %ld", GvSV(PL_curcop->cop_filegv), (long)PL_curcop->cop_line); #endif |