Jerry D. Hedden [Thu, 11 Oct 2007 10:23:03 +0000 (06:23 -0400)]
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <
1ff86f510710110723p6cbed55fo558777258061b556@mail.gmail.com>
p4raw-id: //depot/perl@32100
{
dVAR; dSP; dTARGET; tryAMAGICun(int);
{
- SV *sv = TOPs;
+ dTOPss;
IV iv;
/* XXX it's arguable that compiler casting to IV might be subtly
different from modf (for numbers inside (IV_MIN,UV_MAX)) in which
if (!tsv)
break;
if (SvROK(tsv) && SvRV(tsv) == SvRV(sv)) {
- SETi(PTR2IV(SvRV(sv)));
+ SETu(PTR2UV(SvRV(sv)));
RETURN;
}
else
SETi(iv);
}
else if (SvROK(sv)) {
- SETi(iv);
+ SETu(PTR2UV(SvRV(sv)));
}
else {
const NV value = SvNV(sv);