diff --git a/src/core/Cool.pm b/src/core/Cool.pm index 7795394dac7..8e27dad650d 100644 --- a/src/core/Cool.pm +++ b/src/core/Cool.pm @@ -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), ));