Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test for $!items in List.munch().
  • Loading branch information
pmichaud committed Jul 7, 2011
1 parent 3aa3352 commit c12b7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -91,7 +91,7 @@ class List does Positional {

method munch(\$n) {
self.gimme($n) if nqp::not_i(nqp::istype($n, Int))
|| nqp::isnull($!items)
|| nqp::not_i(pir::defined($!items))
|| nqp::islt_i(nqp::elems($!items), nqp::unbox_i($n));
nqp::p6parcel(
pir::perl6_shiftpush__0PPi(nqp::list(), $!items, nqp::unbox_i($n)),
Expand Down

0 comments on commit c12b7cc

Please sign in to comment.