diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-22 09:51:39 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-29 20:54:49 +0800 |
commit | cb6188df375141f4ec9f33cc918fd640b1ff81b6 (patch) | |
tree | 7732e6b532d54448fee99f99d215af8aea6874e6 /perl.c | |
parent | fe67e58303186e966b34e7dbff135b02fbef325e (diff) | |
download | perl-cb6188df375141f4ec9f33cc918fd640b1ff81b6.tar.gz |
sv.c - don't cast SVTYPEMASK to svtype, use SvIS_FREED() instead.
svtype is an enum with 18 values. SVTYPEMASK is 31. A picky compiler
(like on HPUX) will complain that casting 31 to a svtype is an error.
We have SvIS_FREED() to do this properly anyway.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1429,7 +1429,7 @@ perl_destruct(pTHXx) for (sva = PL_sv_arenaroot; sva; sva = MUTABLE_SV(SvANY(sva))) { svend = &sva[SvREFCNT(sva)]; for (sv = sva + 1; sv < svend; ++sv) { - if (SvTYPE(sv) != (svtype)SVTYPEMASK) { + if (!SvIS_FREED(sv)) { PerlIO_printf(Perl_debug_log, "leaked: sv=0x%p" " flags=0x%" UVxf " refcnt=%" UVuf pTHX__FORMAT "\n" |