From dbe1494dbf01b58f1262b760b98f4fef70fd9e76 Mon Sep 17 00:00:00 2001 From: Jonathan Scott Duff Date: Thu, 31 May 2012 19:57:23 -0500 Subject: [PATCH] use nqp::rindex --- src/core/Cool.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), ));