diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-12-20 13:55:19 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-12-20 13:55:19 +0000 |
commit | 98f4023cc000034f1c073b9f79944462b68e983f (patch) | |
tree | a970736f0d0421668cc5c356c2cb626e7a3d6901 /pp_ctl.c | |
parent | f776e3cd68509957cc5ab2967a78fb0ad213d8aa (diff) | |
download | perl-98f4023cc000034f1c073b9f79944462b68e983f.tar.gz |
Use PTR2IV instead of casting directly
p4raw-id: //depot/perl@26416
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3831,10 +3831,10 @@ S_do_smartmatch(pTHX_ HV *seen_this, HV *seen_other) # define SM_SEEN_THIS(sv) hv_exists_ent(seen_this, \ - sv_2mortal(newSViv((IV) sv)), 0) + sv_2mortal(newSViv(PTR2IV(sv))), 0) # define SM_SEEN_OTHER(sv) hv_exists_ent(seen_other, \ - sv_2mortal(newSViv((IV) sv)), 0) + sv_2mortal(newSViv(PTR2IV(sv))), 0) tryAMAGICbinSET(smart, 0); @@ -4010,10 +4010,10 @@ S_do_smartmatch(pTHX_ HV *seen_this, HV *seen_other) } else { hv_store_ent(seen_this, - sv_2mortal(newSViv((IV) *this_elem)), + sv_2mortal(newSViv(PTR2IV(*this_elem))), &PL_sv_undef, 0); hv_store_ent(seen_other, - sv_2mortal(newSViv((IV) *other_elem)), + sv_2mortal(newSViv(PTR2IV(*other_elem))), &PL_sv_undef, 0); PUSHs(*this_elem); PUSHs(*other_elem); |