This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate:
authorNicholas Clark <nick@ccl4.org>
Fri, 30 Sep 2005 14:15:43 +0000 (14:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 30 Sep 2005 14:15:43 +0000 (14:15 +0000)
[ 24919]
No need to set flags twice.
p4raw-link: @24919 on //depot/perl: a7f5e44d3c17dca4fbe187441ce453de0886cdf3

p4raw-id: //depot/maint-5.8/perl@25670
p4raw-integrated: from //depot/perl@24919 'edit in' av.c (@24871..)

av.c

diff --git a/av.c b/av.c
index e8a5f45..aaf121b 100644 (file)
--- a/av.c
+++ b/av.c
@@ -358,7 +358,7 @@ Perl_newAV(pTHX)
 
     av = (AV*)NEWSV(3,0);
     sv_upgrade((SV *)av, SVt_PVAV);
-    AvREAL_on(av);
+    /* sv_upgrade does AvREAL_only()  */
     AvALLOC(av) = 0;
     SvPV_set(av, (char*)0);
     AvMAX(av) = AvFILLp(av) = -1;
@@ -382,7 +382,7 @@ Perl_av_make(pTHX_ register I32 size, register SV **strp)
 
     av = (AV*)NEWSV(8,0);
     sv_upgrade((SV *) av,SVt_PVAV);
-    AvFLAGS(av) = AVf_REAL;
+    /* sv_upgrade does AvREAL_only()  */
     if (size) {                /* "defined" was returning undef for size==0 anyway. */
         register SV** ary;
         register I32 i;