[libc-commits] [libc] [libc] Fix gmtime test on systems with sizeof(time_t) == 4 (PR #65388)
via libc-commits
libc-commits at lists.llvm.org
Tue Sep 5 11:03:37 PDT 2023
================
@@ -20,6 +20,8 @@ using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
using __llvm_libc::time_utils::TimeConstants;
TEST(LlvmLibcGmTime, OutOfRange) {
+ if(sizeof(time_t) == 4)
----------------
lntue wrote:
Can you change the condition to `sizeof(time_t) < sizeof(int64_t)`?
https://github.com/llvm/llvm-project/pull/65388
More information about the libc-commits
mailing list