mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #10343 from tomoaki0705:suppressWarningEncoding
This commit is contained in:
commit
e29de5dd2b
2
3rdparty/libwebp/src/enc/histogram_enc.c
vendored
2
3rdparty/libwebp/src/enc/histogram_enc.c
vendored
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user