Skip to content

Commit

Permalink
Use ref in signature
Browse files Browse the repository at this point in the history
  • Loading branch information
liu15 committed Jun 6, 2022
1 parent 590c900 commit a94f14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/care/algorithm_decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
namespace care {

template <typename T>
CARE_HOST_DEVICE CARE_INLINE T max(const T a, const T b)
CARE_HOST_DEVICE CARE_INLINE T max(const T& a, const T& b)
{
return a > b ? a : b;
}

template <typename T>
CARE_HOST_DEVICE CARE_INLINE T min(const T a, const T b)
CARE_HOST_DEVICE CARE_INLINE T min(const T& a, const T& b)
{
return a < b ? a : b;
}
Expand Down

0 comments on commit a94f14e

Please sign in to comment.