projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbd97d2
)
[libFuzzer] fix a compiler warning
author
Kostya Serebryany
<kcc@google.com>
Wed, 10 May 2017 23:59:03 +0000
(23:59 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Wed, 10 May 2017 23:59:03 +0000
(23:59 +0000)
llvm-svn: 302747
llvm/lib/Fuzzer/FuzzerMutate.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Fuzzer/FuzzerMutate.cpp
b/llvm/lib/Fuzzer/FuzzerMutate.cpp
index
cd846c7
..
a84e6ee
100644
(file)
--- a/
llvm/lib/Fuzzer/FuzzerMutate.cpp
+++ b/
llvm/lib/Fuzzer/FuzzerMutate.cpp
@@
-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;
}