[libFuzzer] fix 32-bit build

llvm-svn: 249646
This commit is contained in:
Kostya Serebryany 2015-10-08 00:59:25 +00:00
parent aca48ffb41
commit 3b804877fd
1 changed files with 1 additions and 1 deletions

View File

@ -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,