From 467e092776691683b297e1328281cded11717298 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 6 Nov 2013 18:54:04 +0100 Subject: [PATCH] Another bug --- latester/latester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latester/latester.c b/latester/latester.c index a2f4f18..0906760 100644 --- a/latester/latester.c +++ b/latester/latester.c @@ -202,7 +202,7 @@ uint32_t calc_bitmap_crc(uint32_t *bitmap, unsigned start, unsigned end) crc_t crc = 0; crc = crc_update(crc, bitmap[0] << start, 32 - start); crc = crc_update(crc, bitmap[1], 32); - crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64); + crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64); /* FIXME: This seems to be broken for end < 64 */ crc = crc_update(crc, bitmap[3], end > 96 ? end - 96 : 0); return (uint32_t)htons(crc << 17); } -- 2.39.2