summaryrefslogtreecommitdiff
path: root/libc/test/src/string/memory_utils/utils_test.cpp
diff options
context:
space:
mode:
authorVinay Deshmukh <32487576+vinay-deshmukh@users.noreply.github.com>2025-03-04 10:24:35 -0500
committerGitHub <noreply@github.com>2025-03-04 10:24:35 -0500
commit1e6e845d49a336e9da7ca6c576ec45c0b419b5f6 (patch)
tree9254ff775ceaf0aa7055ea9171f3571af12a0a3b /libc/test/src/string/memory_utils/utils_test.cpp
parent4c4fd6b03149348cf11af245ad2603d24144a9d5 (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.cpp2
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;