diff options
| author | Vinay Deshmukh <32487576+vinay-deshmukh@users.noreply.github.com> | 2025-03-10 11:57:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 11:57:09 -0400 |
| commit | 257e48371546f75623482071fc39eef4b64fbd88 (patch) | |
| tree | a925e2bae1efbfd4e395a16b3259421e00aa909e /libc/test/src/string/memmove_test.cpp | |
| parent | c40f0fe4348bb9304b95bd317665bf1cb2bdcc85 (diff) | |
[libc] Add `-Wno-sign-conversion` & re-attempt `-Wconversion` (#129811)
Relates to
https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459
Diffstat (limited to 'libc/test/src/string/memmove_test.cpp')
| -rw-r--r-- | libc/test/src/string/memmove_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/test/src/string/memmove_test.cpp b/libc/test/src/string/memmove_test.cpp index e280b5d25f6f..1e225e58ca1e 100644 --- a/libc/test/src/string/memmove_test.cpp +++ b/libc/test/src/string/memmove_test.cpp @@ -93,7 +93,8 @@ TEST(LlvmLibcMemmoveTest, SizeSweep) { Randomize(Buffer); for (int Size = 0; Size < kMaxSize; ++Size) for (int Overlap = -1; Overlap < Size;) { - ASSERT_TRUE(CheckMemmove<Adaptor>(Buffer, Size, Overlap)); + ASSERT_TRUE( + CheckMemmove<Adaptor>(Buffer, static_cast<size_t>(Size), Overlap)); // Prevent quadratic behavior by skipping offset above kDenseOverlap. if (Overlap > kDenseOverlap) Overlap *= 2; |
