This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence compilter warning
authorKarl Williamson <khw@cpan.org>
Fri, 16 Mar 2018 20:11:52 +0000 (14:11 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Mar 2018 20:16:06 +0000 (14:16 -0600)
See thread beginning at
http://nntp.perl.org/group/perl.perl5.porters/244215

ext/attributes/attributes.pm
ext/attributes/attributes.xs

index 402caf1..c60f940 100644 (file)
@@ -1,6 +1,6 @@
 package attributes;
 
-our $VERSION = 0.32;
+our $VERSION = 0.33;
 
 @EXPORT_OK = qw(get reftype);
 @EXPORT = ();
index f7bb490..07b7b8d 100644 (file)
@@ -66,7 +66,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
                        bool warn =
                            !CvISXSUB(MUTABLE_CV(sv))
                         && CvROOT(MUTABLE_CV(sv))
-                        && !CvLVALUE(MUTABLE_CV(sv)) != negated;
+                        && cBOOL(CvLVALUE(MUTABLE_CV(sv))) == negated;
                        if (negated)
                            CvFLAGS(MUTABLE_CV(sv)) &= ~CVf_LVALUE;
                        else