X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=sv.c;h=029de83ca32da15e0172fcd00d1ab267fb38cd82;hb=37c25af0ec94b55a9d5be380e5f1703e0afca56b;hp=a17794781217175fec0dc9948838c78ced35a672;hpb=b8c701c15b6657c058ab0dd84c78eb210b7618a6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/sv.c b/sv.c index a177947..029de83 100644 --- a/sv.c +++ b/sv.c @@ -3146,8 +3146,11 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags) SvIV_set(dstr, SvIVX(sstr)); if (SvIsUV(sstr)) SvIsUV_on(dstr); - if (SvTAINTED(sstr)) - SvTAINT(dstr); + /* SvTAINTED can only be true if the SV has taint magic, which in + turn means that the SV type is PVMG (or greater). This is the + case statement for SVt_IV, so this cannot be true (whatever gcov + may say). */ + assert(!SvTAINTED(sstr)); return; } goto undef_sstr; @@ -3167,8 +3170,11 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags) } SvNV_set(dstr, SvNVX(sstr)); (void)SvNOK_only(dstr); - if (SvTAINTED(sstr)) - SvTAINT(dstr); + /* SvTAINTED can only be true if the SV has taint magic, which in + turn means that the SV type is PVMG (or greater). This is the + case statement for SVt_NV, so this cannot be true (whatever gcov + may say). */ + assert(!SvTAINTED(sstr)); return; } goto undef_sstr;