summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-09 18:05:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-09 18:05:22 +0000
commit4cf4a19999590a1b9f86a57b9cb8b19188837334 (patch)
tree402e8dca6aeb4fb17c9620ce0d33213d791542e7 /pad.c
parent957f93eee96ef9053b2451ad433491dc67fedaa4 (diff)
downloadperl-4cf4a19999590a1b9f86a57b9cb8b19188837334.tar.gz
Reintroduce the U_32-ification to pad.c,
suggested by Dave Mitchell. p4raw-id: //depot/perl@20584
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pad.c b/pad.c
index 9673c0a05e..90d99795a5 100644
--- a/pad.c
+++ b/pad.c
@@ -558,7 +558,7 @@ Perl_pad_findmy(pTHX_ char *name)
&& !SvFAKE(namesv)
&& (SvFLAGS(namesv) & SVpad_OUR)
&& strEQ(SvPVX(namesv), name)
- && (U32)I_32(SvNVX(namesv)) == PAD_MAX /* min */
+ && U_32(SvNVX(namesv)) == PAD_MAX /* min */
)
return offset;
}
@@ -631,8 +631,8 @@ S_pad_findlex(pTHX_ char *name, CV* cv, U32 seq, int warn,
{
if (SvFAKE(namesv))
fake_offset = offset; /* in case we don't find a real one */
- else if ( seq > (U32)I_32(SvNVX(namesv)) /* min */
- && seq <= (U32)SvIVX(namesv)) /* max */
+ else if ( seq > U_32(SvNVX(namesv)) /* min */
+ && seq <= (U32)SvIVX(namesv)) /* max */
break;
}
}
@@ -656,7 +656,7 @@ S_pad_findlex(pTHX_ char *name, CV* cv, U32 seq, int warn,
DEBUG_Xv(PerlIO_printf(Perl_debug_log,
"Pad findlex cv=0x%"UVxf" matched: offset=%ld (%ld,%ld)\n",
- PTR2UV(cv), (long)offset, (long)I_32(SvNVX(*out_name_sv)),
+ PTR2UV(cv), (long)offset, (long)U_32(SvNVX(*out_name_sv)),
(long)SvIVX(*out_name_sv)));
}
else { /* fake match */
@@ -925,7 +925,7 @@ Perl_intro_my(pTHX)
DEBUG_Xv(PerlIO_printf(Perl_debug_log,
"Pad intromy: %ld \"%s\", (%ld,%ld)\n",
(long)i, SvPVX(sv),
- (long)I_32(SvNVX(sv)), (long)SvIVX(sv))
+ (long)U_32(SvNVX(sv)), (long)SvIVX(sv))
);
}
}
@@ -973,7 +973,7 @@ Perl_pad_leavemy(pTHX)
DEBUG_Xv(PerlIO_printf(Perl_debug_log,
"Pad leavemy: %ld \"%s\", (%ld,%ld)\n",
(long)off, SvPVX(sv),
- (long)I_32(SvNVX(sv)), (long)SvIVX(sv))
+ (long)U_32(SvNVX(sv)), (long)SvIVX(sv))
);
}
}
@@ -1258,7 +1258,7 @@ Perl_do_dump_pad(pTHX_ I32 level, PerlIO *file, PADLIST *padlist, int full)
(int) ix,
PTR2UV(ppad[ix]),
(unsigned long) (ppad[ix] ? SvREFCNT(ppad[ix]) : 0),
- (long)I_32(SvNVX(namesv)),
+ (long)U_32(SvNVX(namesv)),
(long)SvIVX(namesv),
SvPVX(namesv)
);