Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Kukanov <[email protected]>
  • Loading branch information
isaevil and akukanov authored Jan 14, 2025
1 parent 6a951bd commit c05d9a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/oneapi/tbb/task_arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ class task_arena_base {

#if __TBB_PREVIEW_PARALLEL_PHASE
leave_policy get_leave_policy() const {
bool fast_policy_set = (my_version_and_traits & fast_leave_policy_flag) == fast_leave_policy_flag;
return fast_policy_set ? leave_policy::fast : leave_policy::automatic;
return (my_version_and_traits & fast_leave_policy_flag) ? leave_policy::fast : leave_policy::automatic;
}

int leave_policy_to_traits(leave_policy lp) const {
Expand Down

0 comments on commit c05d9a7

Please sign in to comment.