diff --git a/libc/test/src/string/bcopy_test.cpp b/libc/test/src/string/bcopy_test.cpp --- a/libc/test/src/string/bcopy_test.cpp +++ b/libc/test/src/string/bcopy_test.cpp @@ -85,7 +85,7 @@ LargeBuffer Buffer; Randomize(Buffer); for (int Size = 0; Size < kMaxSize; ++Size) - for (int Overlap = -1; Overlap < Size; ++Overlap) { + for (int Overlap = -1; Overlap < Size;) { ASSERT_TRUE(CheckMemmove(Buffer, Size, Overlap)); // Prevent quadratic behavior by skipping offset above kDenseOverlap. if (Overlap > kDenseOverlap)