diff options
| author | Vinay Deshmukh <32487576+vinay-deshmukh@users.noreply.github.com> | 2025-03-04 10:24:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-04 10:24:35 -0500 |
| commit | 1e6e845d49a336e9da7ca6c576ec45c0b419b5f6 (patch) | |
| tree | 9254ff775ceaf0aa7055ea9171f3571af12a0a3b /libc/test/src/string/memory_utils/utils_test.cpp | |
| parent | 4c4fd6b03149348cf11af245ad2603d24144a9d5 (diff) | |
[libc] Enable -Wconversion for tests. (#127523)
Relates to: #119281
Diffstat (limited to 'libc/test/src/string/memory_utils/utils_test.cpp')
| -rw-r--r-- | libc/test/src/string/memory_utils/utils_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/string/memory_utils/utils_test.cpp b/libc/test/src/string/memory_utils/utils_test.cpp index 4c1accd55168..aa122df2d2e6 100644 --- a/libc/test/src/string/memory_utils/utils_test.cpp +++ b/libc/test/src/string/memory_utils/utils_test.cpp @@ -47,7 +47,7 @@ TEST(LlvmLibcUtilsTest, DistanceToAlignDown) { TEST(LlvmLibcUtilsTest, Adjust2) { char a, b; const size_t base_size = 10; - for (ptrdiff_t I = -2; I < 2; ++I) { + for (uintptr_t I = 0; I < 4; ++I) { auto *p1 = &a; auto *p2 = &b; size_t size = base_size; |
