Skip to content

Commit

Permalink
Merge pull request #1536 from IntelPython/fix-copy-instead-of-move-co…
Browse files Browse the repository at this point in the history
…verity-issue

Addressed COPY_INSTEAD_OF_MOVE coverity issue
  • Loading branch information
oleksandr-pavlyk authored Feb 7, 2024
2 parents cf68d61 + 5e707f5 commit f9d3501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpctl/tensor/libtensor/include/kernels/sorting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ void leaf_sort_impl(Iter first,
const size_t end,
Compare comp)
{
return insertion_sort_impl<Iter, Compare>(first, begin, end, comp);
return insertion_sort_impl<Iter, Compare>(
std::move(first), std::move(begin), std::move(end), std::move(comp));
}
} // namespace

Expand Down

0 comments on commit f9d3501

Please sign in to comment.