Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix accidental double-nesting in gather/take hack.
Will go away once we get the real gather/take implementation done.
  • Loading branch information
jnthn committed Jan 3, 2014
1 parent f920930 commit 1324a70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/GatherIter.pm
Expand Up @@ -89,6 +89,12 @@ class GatherIter is Iterator {
nqp::push($rpa, $parcel) unless $end;
$count = $count - 1;
}
#?if moar
# Needed until we have proper thing-at-a-time gather/take.
if nqp::elems($rpa) {
$rpa := nqp::getattr(nqp::atpos($rpa, 0), Parcel, '$!storage');
}
#?endif
nqp::push($rpa,
nqp::p6bindattrinvres(
nqp::p6bindattrinvres(
Expand Down

0 comments on commit 1324a70

Please sign in to comment.