diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-20 08:40:13 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-20 08:40:13 +0000 |
commit | c2f1de04b50c19c25c9b2a25f30fea50533c143c (patch) | |
tree | 9a0b3bbdadd0968558836bf5115d4a24ca2f2e53 | |
parent | 3635cd84fed55c19340154dd67365b31f440d029 (diff) | |
download | perl-c2f1de04b50c19c25c9b2a25f30fea50533c143c.tar.gz |
sv_true() has a superfluous test
p4raw-id: //depot/perl@4823
-rw-r--r-- | sv.c | 3 | ||||
-rw-r--r-- | sv.h | 6 |
2 files changed, 3 insertions, 6 deletions
@@ -4582,8 +4582,7 @@ Perl_sv_true(pTHX_ register SV *sv) if (SvPOK(sv)) { register XPV* tXpv; if ((tXpv = (XPV*)SvANY(sv)) && - (*tXpv->xpv_pv > '0' || - tXpv->xpv_cur > 1 || + (tXpv->xpv_cur > 1 || (tXpv->xpv_cur && *tXpv->xpv_pv != '0'))) return 1; else @@ -676,8 +676,7 @@ struct xpvio { : SvPOK(sv) \ ? (({XPV *nxpv = (XPV*)SvANY(sv); \ nxpv && \ - (*nxpv->xpv_pv > '0' || \ - nxpv->xpv_cur > 1 || \ + (nxpv->xpv_cur > 1 || \ (nxpv->xpv_cur && *nxpv->xpv_pv != '0')); }) \ ? 1 \ : 0) \ @@ -712,8 +711,7 @@ struct xpvio { ? 0 \ : SvPOK(sv) \ ? ((PL_Xpv = (XPV*)SvANY(sv)) && \ - (*PL_Xpv->xpv_pv > '0' || \ - PL_Xpv->xpv_cur > 1 || \ + (PL_Xpv->xpv_cur > 1 || \ (PL_Xpv->xpv_cur && *PL_Xpv->xpv_pv != '0')) \ ? 1 \ : 0) \ |