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 @@ -17,13 +17,14 @@ #include #include +#include #include #include #include "test_macros.h" template -constexpr long check_seconds(Duration d) +constexpr int64_t 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 @@ -17,13 +17,14 @@ #include #include +#include #include #include #include "test_macros.h" template -constexpr long check_subseconds(Duration d) +constexpr int64_t check_subseconds(Duration d) { using HMS = std::chrono::hh_mm_ss; ASSERT_SAME_TYPE(typename HMS::precision, decltype(std::declval().subseconds()));