Skip to content

Commit

Permalink
Mark the CArray dimension as nut sunk
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Apr 27, 2018
1 parent 4c3807c commit 7847768
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Perl6/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3209,8 +3209,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
if $<scoped><DECL><declarator><variable_declarator><semilist> -> $semilist {
my @dimensions := nqp::list_i();
for $semilist -> $dimension {
$dimension.ast.nosink(1);
my $elems := nqp::unbox_i($*W.compile_time_evaluate($/, $dimension.ast));
my $elems := nqp::unbox_i($*W.compile_time_evaluate($/, $dimension.ast, :mark-wanted));
nqp::push_i(@dimensions, $elems);
}
nqp::bindattr($attr, $attr.WHAT, '$!dimensions', @dimensions);
Expand Down

0 comments on commit 7847768

Please sign in to comment.