Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't use .push in Buf.list when we already know exactly what index w…
…e're going to use.
  • Loading branch information
jnthn committed Oct 23, 2011
1 parent f7d3d5d commit 81ce668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Buf.pm
Expand Up @@ -42,7 +42,7 @@ class Buf does Positional {
my int $bytes = nqp::elems($!buffer);
my int $i = 0;
while $i < $bytes {
@l.push: nqp::p6box_i(nqp::atpos_i($!buffer, $i));
@l[$i] = nqp::p6box_i(nqp::atpos_i($!buffer, $i));
$i = $i + 1;
}
@l;
Expand Down

0 comments on commit 81ce668

Please sign in to comment.