Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use a native int for iterating
it might be a bit faster
  • Loading branch information
moritz committed Sep 26, 2014
1 parent 6a57058 commit 964a9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Inline/Perl5.pm6
Expand Up @@ -287,7 +287,7 @@ method p5_array_to_p6_array(OpaquePointer $sv) {
my $av_len = p5_av_top_index($!p5, $av);

my $arr = [];
loop (my $i = 0; $i <= $av_len; $i++) {
loop (my int $i = 0; $i <= $av_len; $i = $i + 1) {
$arr.push(self.p5_to_p6(p5_av_fetch($!p5, $av, $i)));
}
return $arr;
Expand Down

0 comments on commit 964a9cb

Please sign in to comment.