From a128dfff5168d4ca59624814e85b9b81a4119e87 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 21 Feb 2017 20:12:17 -0800 Subject: [PATCH] histogram_enc.c,MyRand: s/ul/u/ for unsigned constants this is more consistent with the rest of the code base Change-Id: Ifcf5d2729b2ebf32ffa12017db0106166829c77e --- src/enc/histogram_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/histogram_enc.c b/src/enc/histogram_enc.c index cb7d3689..e0e7fcd7 100644 --- a/src/enc/histogram_enc.c +++ b/src/enc/histogram_enc.c @@ -599,7 +599,7 @@ static VP8LHistogram* HistogramCombineEntropyBin( // Implement a Lehmer random number generator with a multiplicative constant of // 48271 and a modulo constant of 2^31 − 1. 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); return *seed; }