Explicitly cast len to unsigned long for %lu

This commit is contained in:
stateless 2013-06-28 23:30:59 +01:00 committed by David Galos
parent 60731fb6e8
commit c1c367c1bd
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ cksum(int fd, const char *s)
for(i = len; i > 0; i >>= 8)
ck = (ck << 8) ^ crctab[(ck >> 24) ^ (i & 0xFF)];
printf("%u %lu", ~ck, len);
printf("%u %lu", ~ck, (unsigned long)len);
if(s != NULL)
printf(" %s", s);
putchar('\n');