diff options
author | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:30:45 -0600 |
---|---|---|
committer | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:30:45 -0600 |
commit | a34aca8a2ee295cc711418518f1d8c9fe099833d (patch) | |
tree | 78cc306e851e1c6f340cc6c235c97c23bbad928e /lib | |
parent | 199578c4252ac04f55cc4463a0eefe0c9c1a1ff3 (diff) | |
parent | ae4d98378f651581ece95d133fd65a811e5bb8d5 (diff) | |
download | history-a34aca8a2ee295cc711418518f1d8c9fe099833d.tar.gz |
Merge bk://linux.bkbits.net/linux-2.5
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crc32.c b/lib/crc32.c index b3defb2db34563..01db3a187bc163 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -92,7 +92,7 @@ u32 attribute((pure)) crc32_le(u32 crc, unsigned char const *p, size_t len) crc = __cpu_to_le32(crc); /* Align it */ - for ( ; ((u32)b)&3 && len ; len--){ + for ( ; ((long)b)&3 && len ; len--){ # ifdef __LITTLE_ENDIAN crc = (crc>>8) ^ crc32table_le[ (crc ^ *((u8 *)b)++) & 0xff ]; # else @@ -201,7 +201,7 @@ u32 attribute((pure)) crc32_be(u32 crc, unsigned char const *p, size_t len) crc = __cpu_to_be32(crc); /* Align it */ - for ( ; ((u32)b)&3 && len ; len--){ + for ( ; ((long)b)&3 && len ; len--){ # ifdef __LITTLE_ENDIAN crc = (crc>>8) ^ crc32table_be[ (crc ^ *((u8 *)b)++) & 0xff ]; # else |