blob: 52d4d670998b326821eda7fc69e2b4ce97f4a296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ag,v 1.1 2004/06/08 22:36:09 cube Exp $
--- trackdb/lec.cc.orig 2004-06-08 23:43:27.000000000 +0200
+++ trackdb/lec.cc
@@ -278,7 +278,7 @@ static u_int32_t calc_edc(u_int8_t *data
u_int32_t crc = 0;
while (len--) {
- crc = CRCTABLE[(crc ^ *data++) & 0xffL] ^ (crc >> 8);
+ crc = CRCTABLE[(int)((crc ^ *data++) & 0xffL)] ^ (crc >> 8);
}
return crc;
|