diff --git a/libcxx/test/std/time/time.hms/time.hms.members/seconds.pass.cpp b/libcxx/test/std/time/time.hms/time.hms.members/seconds.pass.cpp --- a/libcxx/test/std/time/time.hms/time.hms.members/seconds.pass.cpp +++ b/libcxx/test/std/time/time.hms/time.hms.members/seconds.pass.cpp @@ -23,7 +23,7 @@ #include "test_macros.h" template -constexpr long check_seconds(Duration d) +constexpr long long check_seconds(Duration d) { using HMS = std::chrono::hh_mm_ss; ASSERT_SAME_TYPE(std::chrono::seconds, decltype(std::declval().seconds())); diff --git a/libcxx/test/std/time/time.hms/time.hms.members/subseconds.pass.cpp b/libcxx/test/std/time/time.hms/time.hms.members/subseconds.pass.cpp --- a/libcxx/test/std/time/time.hms/time.hms.members/subseconds.pass.cpp +++ b/libcxx/test/std/time/time.hms/time.hms.members/subseconds.pass.cpp @@ -23,7 +23,7 @@ #include "test_macros.h" template -constexpr long check_subseconds(Duration d) +constexpr long long check_subseconds(Duration d) { using HMS = std::chrono::hh_mm_ss; ASSERT_SAME_TYPE(typename HMS::precision, decltype(std::declval().subseconds()));