Skip to content

Commit

Permalink
Call on use experimental at the different line
Browse files Browse the repository at this point in the history
  • Loading branch information
titsuki committed Aug 6, 2018
1 parent 378cfdd commit ed6d0d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MeCab/Lattice.pm6
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use v6;
use NativeCall;
use experimental :pack;

unit class MeCab::Lattice:auth<titsuki>:ver<0.0.6> is repr('CPointer');

Expand Down Expand Up @@ -164,6 +163,8 @@ multi method boundary-constraint(Int $pos, BoundaryConstraintType $boundary-type
}

multi method feature-constraint(Int $begin-pos, Int $end-pos, Str $feature) {
use experimental :pack;

my CArray[int8] $int8-feature .= new;
my $i = 0;
for $feature.encode('UTF-8').unpack("C*") {
Expand Down

0 comments on commit ed6d0d5

Please sign in to comment.