From 52f6f2f912b3c4b602a9979eb67735d54fea9d7e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 9 Nov 2014 12:47:52 +0100 Subject: etisnoop AAC AU CRC calculation --- etisnoop/firecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etisnoop/firecode.c') diff --git a/etisnoop/firecode.c b/etisnoop/firecode.c index fd13dec..47ee976 100644 --- a/etisnoop/firecode.c +++ b/etisnoop/firecode.c @@ -31,7 +31,7 @@ uint16_t firecode_crc(uint8_t* buf, size_t size) crc = 0x0000; gen_poly = 0x782F; // 0111 1000 0010 1111 (16, 14, 13, 12, 11, 5, 3, 2, 1, 0) - for (int len = 0; len < size; len++) { + for (size_t len = 0; len < size; len++) { for (int i = 0x80; i != 0; i >>= 1) { if ((crc & 0x8000) != 0) { crc = (crc << 1) ^ gen_poly; -- cgit v1.2.3