Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some pir::op sigs.
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent c0ca5a3 commit bb7a618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/QPerl6/Ops.pm
Expand Up @@ -95,3 +95,5 @@ QAST::Operations.add_hll_unbox('perl6', 's', -> $qastcomp, $post {
$ops.result($reg);
$ops
});

QAST::Operations.add_core_pirop_mapping('findnotcclass', 'find_not_cclass', 'Iisii');
4 changes: 2 additions & 2 deletions src/core/Str.pm
Expand Up @@ -683,9 +683,9 @@ my class Str does Stringy {
method encode(Str:D $encoding = 'utf8') {
my $buf := Buf.new;
pir::set__vPs(nqp::getattr($buf, Buf, '$!buffer'),
pir::trans_encoding__ssi(
pir::trans_encoding__Ssi(
nqp::unbox_s(self),
pir::find_encoding__is(nqp::unbox_s(PARROT_ENCODING($encoding)))
pir::find_encoding__Is(nqp::unbox_s(PARROT_ENCODING($encoding)))
)
);
$buf;
Expand Down

0 comments on commit bb7a618

Please sign in to comment.