[libFuzzer] fix a compiler warning

llvm-svn: 302747
This commit is contained in:
Kostya Serebryany 2017-05-10 23:59:03 +00:00
parent bbd97d273b
commit ae0317e4a9
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ DictionaryEntry MutationDispatcher::MakeDictionaryEntryFromCMP(
size_t NumPositions = 0;
for (const uint8_t *Cur = Data;
Cur < End && NumPositions < kMaxNumPositions; Cur++) {
Cur = (uint8_t *)SearchMemory(Cur, End - Cur, ExistingBytes, ArgSize);
Cur =
(const uint8_t *)SearchMemory(Cur, End - Cur, ExistingBytes, ArgSize);
if (!Cur) break;
Positions[NumPositions++] = Cur - Data;
}