Skip to content

Commit

Permalink
pp_initfield: no need to extend av, should be the desired size
Browse files Browse the repository at this point in the history
This was probably an accidental leftover after an early pull
request changed AV creation to `av = newAV_alloc_x(count)`
just above the removed line.
  • Loading branch information
richardleach authored and leonerd committed Sep 6, 2023
1 parent 008ae6a commit c0c43c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion class.c
Expand Up @@ -78,7 +78,6 @@ PP(pp_initfield)

av = newAV_alloc_x(count);

av_extend(av, count);
while(svp <= PL_stack_sp) {
av_push_simple(av, newSVsv(*svp));
svp++;
Expand Down

0 comments on commit c0c43c4

Please sign in to comment.