@@ -2093,13 +2093,11 @@ Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count,
2093
2093
/* search for "restudy" in this file for a detailed explanation */
2094
2094
DEBUG_PARSE_r(
2095
2095
if (!restudied)
2096
- Perl_re_printf( aTHX_ "first at %" IVdf "\n",
2097
- (IV)(first - scan + 1))
2096
+ Perl_re_printf( aTHX_ "first at %td\n", first - scan + 1)
2098
2097
);
2099
2098
#else
2100
2099
DEBUG_PARSE_r(
2101
- Perl_re_printf( aTHX_ "first at %" IVdf "\n",
2102
- (IV)(first - scan + 1))
2100
+ Perl_re_printf( aTHX_ "first at %td\n", first - scan + 1)
2103
2101
);
2104
2102
#endif
2105
2103
@@ -4384,12 +4382,12 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
4384
4382
DEBUG_PARSE_MSG("lsbr");
4385
4383
regprop(RExC_rx, RExC_mysv1, REGNODE_p(lastbr), NULL, pRExC_state);
4386
4384
regprop(RExC_rx, RExC_mysv2, REGNODE_p(ender), NULL, pRExC_state);
4387
- Perl_re_printf( aTHX_ "~ tying lastbr %s (%" IVdf ") to ender %s (%" IVdf ") offset %" IVdf " \n",
4385
+ Perl_re_printf( aTHX_ "~ tying lastbr %s (%" IVdf ") to ender %s (%" IVdf ") offset %td \n",
4388
4386
SvPV_nolen_const(RExC_mysv1),
4389
4387
(IV)lastbr,
4390
4388
SvPV_nolen_const(RExC_mysv2),
4391
4389
(IV)ender,
4392
- (IV)( ender - lastbr)
4390
+ (ender - lastbr)
4393
4391
);
4394
4392
});
4395
4393
if (OP(REGNODE_p(lastbr)) == BRANCH) {
@@ -4448,12 +4446,12 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
4448
4446
NULL, pRExC_state);
4449
4447
regprop(RExC_rx, RExC_mysv2, REGNODE_p(ender),
4450
4448
NULL, pRExC_state);
4451
- Perl_re_printf( aTHX_ "~ converting ret %s (%" IVdf ") to ender %s (%" IVdf ") offset %" IVdf " \n",
4449
+ Perl_re_printf( aTHX_ "~ converting ret %s (%" IVdf ") to ender %s (%" IVdf ") offset %td \n",
4452
4450
SvPV_nolen_const(RExC_mysv1),
4453
4451
(IV)REG_NODE_NUM(ret_as_regnode),
4454
4452
SvPV_nolen_const(RExC_mysv2),
4455
4453
(IV)ender,
4456
- (IV)( ender - ret)
4454
+ (ender - ret)
4457
4455
);
4458
4456
});
4459
4457
OP(br)= NOTHING;
@@ -7435,8 +7433,8 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
7435
7433
if (need_to_fold_loc) {
7436
7434
upper_fill = loc_correspondence[s - s_start];
7437
7435
if (upper_fill == 0) {
7438
- FAIL2("panic: loc_correspondence[%d ] is 0",
7439
- (int) ( s - s_start));
7436
+ FAIL2("panic: loc_correspondence[%td ] is 0",
7437
+ (s - s_start));
7440
7438
}
7441
7439
Safefree(locfold_buf);
7442
7440
Safefree(loc_correspondence);
@@ -13147,10 +13145,10 @@ S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode_offset p,
13147
13145
DEBUG_PARSE_MSG("");
13148
13146
regprop(RExC_rx, RExC_mysv, REGNODE_p(val), NULL, pRExC_state);
13149
13147
Perl_re_printf( aTHX_
13150
- "~ attach to %s (%" IVdf " ) offset to %" IVdf " \n",
13148
+ "~ attach to %s (%zd ) offset to %td \n",
13151
13149
SvPV_nolen_const(RExC_mysv),
13152
13150
(IV)val,
13153
- (IV)( val - scan)
13151
+ (val - scan)
13154
13152
);
13155
13153
});
13156
13154
if (REGNODE_OFF_BY_ARG(OP(REGNODE_p(scan)))) {
@@ -13913,7 +13911,7 @@ Perl_save_re_context(pTHX)
13913
13911
for (i = 1; i <= nparens; i++) {
13914
13912
char digits[TYPE_CHARS(long)];
13915
13913
const STRLEN len = my_snprintf(digits, sizeof(digits),
13916
- "%lu", (long) i);
13914
+ "%" I32df, i);
13917
13915
GV *const *const gvp
13918
13916
= (GV**)hv_fetch(PL_defstash, digits, len, 0);
13919
13917
@@ -13925,7 +13923,6 @@ Perl_save_re_context(pTHX)
13925
13923
}
13926
13924
}
13927
13925
#endif
13928
-
13929
13926
#ifndef PERL_IN_XSUB_RE
13930
13927
13931
13928
# include "uni_keywords.h"
@@ -16329,7 +16326,7 @@ S_handle_names_wildcard(pTHX_ const char * wname, /* wildcard name to match */
16329
16326
* were returned to us in the array 'algorithmic_names' from data in
16330
16327
* lib/unicore/Name.pm. 'code_point' in the name is expressed in hex. */
16331
16328
for (i = 0; i <= av_top_index((AV *) algorithmic_names); i++) {
16332
- IV j;
16329
+ SSize_t j;
16333
16330
16334
16331
/* Each element of the array is a hash, giving the details for the
16335
16332
* series of names it covers. There is the base name of the characters
@@ -16360,8 +16357,7 @@ S_handle_names_wildcard(pTHX_ const char * wname, /* wildcard name to match */
16360
16357
for (j = low; j <= high; j++) { /* For each code point in the series */
16361
16358
16362
16359
/* Get its name, and see if it matches the subpattern */
16363
- sv_setpvf(algo_name, "%s-%X", SvPVX(prefix),
16364
- (unsigned) j);
16360
+ sv_setpvf(algo_name, "%s-%zX", SvPVX(prefix), j);
16365
16361
16366
16362
if (execute_wildcard(subpattern_re,
16367
16363
SvPVX(algo_name),
0 commit comments