Skip to content

Commit

Permalink
use nqp::rindex
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Jun 1, 2012
1 parent ebd0e6c commit dbe1494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Cool.pm
Expand Up @@ -134,13 +134,13 @@ my class Cool {
}
my $result = $pos.defined
?? nqp::p6box_i(
pir::rindex__ISSI(
nqp::rindex(
nqp::unbox_s(self.Str),
nqp::unbox_s($needle.Str),
nqp::unbox_i($pos.Int)
))
!! nqp::p6box_i(
pir::rindex__ISS(
nqp::rindex(
nqp::unbox_s(self.Str),
nqp::unbox_s($needle.Str),
));
Expand Down

0 comments on commit dbe1494

Please sign in to comment.