Skip to content

Commit 288b750

Browse files
committed
[libc] Fix WEOF and fix 1'000'000 error messages on test failure
1 parent 361a659 commit 288b750

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libc/include/llvm-libc-macros/wchar-macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define LLVM_LIBC_MACROS_WCHAR_MACROS_H
1111

1212
#ifndef WEOF
13-
#define WEOF 0xffffffffu
13+
#define WEOF ((wint_t)(0xffffffffu))
1414
#endif
1515

1616
#endif // LLVM_LIBC_MACROS_WCHAR_MACROS_H

libc/test/src/math/smoke/RoundToIntegerTest.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ class RoundToIntegerTestTemplate
113113
}
114114

115115
void testSubnormalRange(RoundToIntegerFunc func) {
116-
constexpr int COUNT = 1'000'001;
116+
// Arbitrary, trades off completeness with testing time (esp. on failure)
117+
constexpr int COUNT = 1'000;
117118
constexpr StorageType STEP = LIBC_NAMESPACE::cpp::max(
118119
static_cast<StorageType>((MAX_SUBNORMAL - MIN_SUBNORMAL) / COUNT),
119120
StorageType(1));

0 commit comments

Comments
 (0)