Skip to content

Commit

Permalink
Take 'this' by ref in DstAggregator.copy (chapel-lang#24396)
Browse files Browse the repository at this point in the history
Updates DstAggregator.copy to take 'this' by ref, avoiding
a deprecation warning about inferring default intents.

- [x] local paratest
- [x] gasnet paratest

[ trivial - not reviewed ]
  • Loading branch information
jeremiah-corrado authored Feb 12, 2024
2 parents 3b0974f + 055e497 commit 13e1488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/packages/CopyAggregation.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module CopyAggregation {
type elemType;
@chpldoc.nodoc
var agg: if aggregate then DstAggregatorImpl(elemType) else nothing;
inline proc copy(ref dst: elemType, const in srcVal: elemType) {
inline proc ref copy(ref dst: elemType, const in srcVal: elemType) {
if aggregate then agg.copy(dst, srcVal);
else dst = srcVal;
}
Expand Down

0 comments on commit 13e1488

Please sign in to comment.