PATCH: unsigned/signed #2

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Sun Feb 17 05:57:02 GMT 2002


Hello,

here anoother small patche to clean up the signed/unsigned situations.

--- lib/crc32.c	Wed Oct  3 20:34:30 2001
+++ lib/crc32.and	Sat Feb 16 15:37:01 2002
@@ -58,7 +58,7 @@
 uint32 crc32_calc_buffer( char *buffer, uint32 count)
 {
         uint32 crc=0xffffffff;
-	int i;
+	uint32 i;
         for(i=0;i<count;i++)
                 crc = (crc>>8) ^ CRCTable[(buffer[i] ^ crc) & 0xff];
         crc^=0xffffffff;

Bye
Andreas




More information about the samba-technical mailing list