Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A couple of stray nqp::p6decont => nqp::decont.
  • Loading branch information
jnthn committed Mar 19, 2013
1 parent 8b49b7a commit 044f377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -150,7 +150,7 @@ my class List does Positional {
my $i;
my Mu $v;
gather while $n > 0 {
$i = nqp::rand_I(nqp::p6decont($elems), Int);
$i = nqp::rand_I(nqp::decont($elems), Int);
$elems--; $n--;
$v := nqp::atpos($rpa, nqp::unbox_i($i));
# replace selected element with last unpicked one
Expand Down
2 changes: 1 addition & 1 deletion src/core/Range.pm
Expand Up @@ -84,7 +84,7 @@ my class Range is Iterable is Cool does Positional {
?? $!max.Numeric
!! $!max;
my Mu $rpa := nqp::list();
if nqp::istype($value, Int) && nqp::istype($!max, Int) && !nqp::isbig_I(nqp::p6decont $!max)
if nqp::istype($value, Int) && nqp::istype($!max, Int) && !nqp::isbig_I(nqp::decont $!max)
|| nqp::istype($value, Num) {
# Q:PIR optimized for int/num ranges
$value = $value.Num;
Expand Down

0 comments on commit 044f377

Please sign in to comment.