From 74479087a783f52e6ccad05cf06b0cbc7896507a Mon Sep 17 00:00:00 2001 From: Jake Hemstad Date: Thu, 19 Nov 2020 08:44:44 -0600 Subject: [PATCH] Use auto return type to silence return conversion warning. --- .../time/time.hms/time.hms.members/subseconds.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp index 59f854f598..5c55caa9ea 100644 --- a/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp +++ b/.upstream-tests/test/std/utilities/time/time.hms/time.hms.members/subseconds.pass.cpp @@ -22,7 +22,7 @@ template __host__ __device__ -constexpr long check_subseconds(Duration d) +constexpr auto check_subseconds(Duration d) { using HMS = cuda::std::chrono::hh_mm_ss; ASSERT_SAME_TYPE(typename HMS::precision, decltype(cuda::std::declval().subseconds()));