Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pp.h: replace erroneous bitwise AND with logical AND #22937

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pp.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
IV TARGi_iv = i; \
if (LIKELY( \
((SvFLAGS(TARG) & (SVTYPEMASK|SVf_THINKFIRST|SVf_IVisUV)) == SVt_IV) \
& (do_taint ? !TAINT_get : 1))) \
&& (do_taint ? !TAINT_get : 1))) \
{ \
/* Cheap SvIOK_only(). \
* Assert that flags which SvIOK_only() would test or \
Expand All @@ -505,8 +505,8 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
UV TARGu_uv = u; \
if (LIKELY( \
((SvFLAGS(TARG) & (SVTYPEMASK|SVf_THINKFIRST|SVf_IVisUV)) == SVt_IV) \
& (do_taint ? !TAINT_get : 1) \
& (TARGu_uv <= (UV)IV_MAX))) \
&& (do_taint ? !TAINT_get : 1) \
&& (TARGu_uv <= (UV)IV_MAX))) \
{ \
/* Cheap SvIOK_only(). \
* Assert that flags which SvIOK_only() would test or \
Expand All @@ -528,7 +528,7 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
NV TARGn_nv = n; \
if (LIKELY( \
((SvFLAGS(TARG) & (SVTYPEMASK|SVf_THINKFIRST)) == SVt_NV) \
& (do_taint ? !TAINT_get : 1))) \
&& (do_taint ? !TAINT_get : 1))) \
{ \
/* Cheap SvNOK_only(). \
* Assert that flags which SvNOK_only() would test or \
Expand Down
Loading