Skip to content

Commit

Permalink
be a bit more idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Sep 26, 2014
1 parent b639c31 commit 6a57058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Inline/Perl5.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ multi method p6_to_p5(Str:D $value) returns OpaquePointer {
}
multi method p6_to_p5(blob8:D $value) returns OpaquePointer {
my $array = CArray[uint8].new();
for 0 .. $value.elems - 1 {
for ^$value.elems {
$array[$_] = $value[$_];
}
return p5_buf_to_sv($!p5, $value.elems, $array);
Expand Down

0 comments on commit 6a57058

Please sign in to comment.