diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-21 10:35:09 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-21 10:35:09 +0000 |
commit | a7f5e44d3c17dca4fbe187441ce453de0886cdf3 (patch) | |
tree | 30d878381bb2fa0be6b9a3144fd09d71e75fe65f /av.c | |
parent | 85274cbc9a4ab4f30bf23de40721acf6d8493570 (diff) | |
download | perl-a7f5e44d3c17dca4fbe187441ce453de0886cdf3.tar.gz |
No need to set flags twice.
p4raw-id: //depot/perl@24919
Diffstat (limited to 'av.c')
-rw-r--r-- | av.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); - AvREAL_only(av); + /* sv_upgrade does AvREAL_only() */ if (size) { /* "defined" was returning undef for size==0 anyway. */ register SV** ary; register I32 i; |