Skip to content

Commit

Permalink
Use better conditional
Browse files Browse the repository at this point in the history
In case we ever get stuff with curriable-call-offset of zero
  • Loading branch information
zoffixznet committed Apr 7, 2018
1 parent ae9486c commit c103459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -9693,7 +9693,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
(nqp::eqat($qast.name, '&postcircumfix:', 0) &&
%curried{$qast.name} // 0)
# or it's one of the curriable things rewritten to `call`
|| $qast.ann('curriable-call-offset') && 3)
|| $qast.has_ann('curriable-call-offset') && 3)
);

return $qast unless $curried;
Expand Down

0 comments on commit c103459

Please sign in to comment.