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 9, 2018
1 parent 36c92d5 commit ae18b7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -3201,8 +3201,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 ae18b7a

Please sign in to comment.