From 4212f3601f3f159071b894265d21728b18fdec1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miran=20Gr=C4=8Da?= Date: Thu, 24 Jul 2025 17:21:19 +0200 Subject: [PATCH] CRC32: Correct some types. --- src/utils/crc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/crc32.c b/src/utils/crc32.c index 719f3a237..8bad11b5f 100644 --- a/src/utils/crc32.c +++ b/src/utils/crc32.c @@ -540,10 +540,10 @@ static crc_t multmodp(crc_t a, crc_t b) { Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been initialized. */ -static crc_t x2nmodp(z_off64_t n, unsigned k) { +static crc_t x2nmodp(off64_t n, unsigned k) { crc_t p; - p = (z_crc_t)1 << 31; /* x^0 == 1 */ + p = (crc_t)1 << 31; /* x^0 == 1 */ while (n) { if (n & 1) p = multmodp(x2n_table[k & 31], p);