Merge pull request #10343 from tomoaki0705:suppressWarningEncoding

This commit is contained in:
Vadim Pisarevsky 2017-12-18 10:53:24 +00:00
commit e29de5dd2b

View File

@ -605,7 +605,7 @@ static void HistogramCombineEntropyBin(VP8LHistogramSet* const image_histo,
} }
// Implement a Lehmer random number generator with a multiplicative constant of // Implement a Lehmer random number generator with a multiplicative constant of
// 48271 and a modulo constant of 2^31 1. // 48271 and a modulo constant of 2^31 - 1.
static uint32_t MyRand(uint32_t* const seed) { static uint32_t MyRand(uint32_t* const seed) {
*seed = (uint32_t)(((uint64_t)(*seed) * 48271u) % 2147483647u); *seed = (uint32_t)(((uint64_t)(*seed) * 48271u) % 2147483647u);
assert(*seed > 0); assert(*seed > 0);