growthSize = std::min(uncompressedLength, growthSize);
} else {
// Reduce growthSize for small data
growthSize = std::min(uncompressedLength, growthSize);
} else {
// Reduce growthSize for small data
- const auto guessUncompressedLen = 4 * std::max(blockSize, in.size());
+ const auto guessUncompressedLen =
+ 4 * std::max<uint64_t>(blockSize, in.size());
growthSize = std::min(guessUncompressedLen, growthSize);
}
// Once LZ4_decompress() is called, the dctx_ cannot be reused until it
growthSize = std::min(guessUncompressedLen, growthSize);
}
// Once LZ4_decompress() is called, the dctx_ cannot be reused until it