projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd08c8
)
[libFuzzer] fix 32-bit build
author
Kostya Serebryany
<kcc@google.com>
Thu, 8 Oct 2015 00:59:25 +0000
(
00:59
+0000)
committer
Kostya Serebryany
<kcc@google.com>
Thu, 8 Oct 2015 00:59:25 +0000
(
00:59
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249646
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerMutate.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerMutate.cpp
b/lib/Fuzzer/FuzzerMutate.cpp
index 0e8429bcb2720d3698a1ec7e4347e58ee6804eda..74ae0cbb75a3a8bca543574892ff38ad4b7488c3 100644
(file)
--- a/
lib/Fuzzer/FuzzerMutate.cpp
+++ b/
lib/Fuzzer/FuzzerMutate.cpp
@@
-61,7
+61,7
@@
static char RandCh(FuzzerRandomBase &Rand) {
size_t MutationDispatcher::Mutate_ShuffleBytes(uint8_t *Data, size_t Size,
size_t MaxSize) {
assert(Size);
- size_t ShuffleAmount = Rand(std::min(Size,
8UL
)) + 1; // [1,8] and <= Size.
+ size_t ShuffleAmount = Rand(std::min(Size,
(size_t)8
)) + 1; // [1,8] and <= Size.
size_t ShuffleStart = Rand(Size - ShuffleAmount);
assert(ShuffleStart + ShuffleAmount <= Size);
std::random_shuffle(Data + ShuffleStart, Data + ShuffleStart + ShuffleAmount,