Skip to content

Commit

Permalink
inline.h: prevent cast warning on MSVC
Browse files Browse the repository at this point in the history
MSVC complains about truncation (it isn't truncation) when casting
the pointer to bool.
  • Loading branch information
tonycoz committed Jul 4, 2023
1 parent a383e1c commit 0d8ee59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inline.h
Expand Up @@ -2834,7 +2834,7 @@ Perl_cx_popsub_common(pTHX_ PERL_CONTEXT *cx)
assert(CxTYPE(cx) == CXt_SUB);

PL_comppad = cx->blk_sub.prevcomppad;
PL_curpad = LIKELY(PL_comppad) ? AvARRAY(PL_comppad) : NULL;
PL_curpad = LIKELY(PL_comppad != NULL) ? AvARRAY(PL_comppad) : NULL;
cv = cx->blk_sub.cv;
CvDEPTH(cv) = cx->blk_sub.olddepth;
cx->blk_sub.cv = NULL;
Expand Down Expand Up @@ -2916,7 +2916,7 @@ Perl_cx_popformat(pTHX_ PERL_CONTEXT *cx)
SvREFCNT_dec_NN(dfout);

PL_comppad = cx->blk_format.prevcomppad;
PL_curpad = LIKELY(PL_comppad) ? AvARRAY(PL_comppad) : NULL;
PL_curpad = LIKELY(PL_comppad != NULL) ? AvARRAY(PL_comppad) : NULL;
cv = cx->blk_format.cv;
cx->blk_format.cv = NULL;
--CvDEPTH(cv);
Expand Down

0 comments on commit 0d8ee59

Please sign in to comment.