[NUT-devel] [NUT] (ods15): r80 - in /trunk: libnut/priv.h nututils/nutindex.c

syncmail at mplayerhq.hu syncmail at mplayerhq.hu
Sat Feb 25 19:24:17 CET 2006


Author: ods15
Date: Sat Feb 25 19:24:17 2006
New Revision: 80

Log:
fix crc32...

Modified:
    trunk/libnut/priv.h
    trunk/nututils/nutindex.c

Modified: trunk/libnut/priv.h
==============================================================================
--- trunk/libnut/priv.h (original)
+++ trunk/libnut/priv.h Sat Feb 25 19:24:17 2006
@@ -177,7 +177,7 @@
 };
 
 static inline uint32_t crc32(uint8_t * buf, int len){
-	uint32_t crc = 0;
+	int32_t crc = 0;
 	int i;
 	while (len--) {
 		crc ^= *buf++ << 24;

Modified: trunk/nututils/nutindex.c
==============================================================================
--- trunk/nututils/nutindex.c (original)
+++ trunk/nututils/nutindex.c Sat Feb 25 19:24:17 2006
@@ -21,7 +21,7 @@
 #define bctello(bc) ((bc)->file_pos + ((bc)->buf_ptr - (bc)->buf))
 
 static inline uint32_t crc32(uint8_t * buf, int len){
-	uint32_t crc = 0;
+	int32_t crc = 0;
 	int i;
 	while (len--) {
 		crc ^= *buf++ << 24;




More information about the NUT-devel mailing list