Skip to content

Commit

Permalink
Fix __builtin_addressof typo in reducers.md
Browse files Browse the repository at this point in the history
Fix typo where `__builtin_address` should be `__builtin_addressof`.  Fixes #236
  • Loading branch information
neboat authored Jan 3, 2025
1 parent c41262c commit ccd5a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/reference/reducers.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void compute_sum(long cilk_reducer(zero, add) *sum)
long provide_reducer()
{
long cilk_reducer(zero, add) sum = 0L; // must be initialized
compute_sum(__builtin_address(sum));
compute_sum(__builtin_addressof(sum));
return sum;
}
```
Expand Down

0 comments on commit ccd5a78

Please sign in to comment.