Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Use auto return type to silence return conversion warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhemstad authored and griwes committed Nov 20, 2020
1 parent 7447908 commit 753a0dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

template <typename Duration>
__host__ __device__
constexpr long check_seconds(Duration d)
constexpr auto check_seconds(Duration d)
{
using HMS = cuda::std::chrono::hh_mm_ss<Duration>;
ASSERT_SAME_TYPE(cuda::std::chrono::seconds, decltype(cuda::std::declval<HMS>().seconds()));
Expand Down

0 comments on commit 753a0dd

Please sign in to comment.