histogram_enc.c,MyRand: s/ul/u/ for unsigned constants

this is more consistent with the rest of the code base

Change-Id: Ifcf5d2729b2ebf32ffa12017db0106166829c77e
This commit is contained in:
James Zern 2017-02-21 20:12:17 -08:00
parent 693bf74ec0
commit a128dfff51

View File

@ -599,7 +599,7 @@ static VP8LHistogram* HistogramCombineEntropyBin(
// 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) * 48271ul) % 2147483647ul); *seed = (uint32_t)(((uint64_t)(*seed) * 48271u) % 2147483647u);
assert(*seed > 0); assert(*seed > 0);
return *seed; return *seed;
} }