Skip to content

Commit

Permalink
Fixing loop-end condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Apr 11, 2024
1 parent 71c796b commit d4c08e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ namespace hpx::parallel::execution::detail {
auto post_policy = hpx::execution::experimental::with_stacksize(
policy, threads::thread_stacksize::small_);
std::size_t start = 0;
while (true)
while (start < size)
{
auto const stop = start + hierarchical_threshold;
if (stop > size)
Expand Down

0 comments on commit d4c08e8

Please sign in to comment.