In the C version, you're including the string terminator '\0' in your calculation. Try sizeof(s)-1.
...roboticus
In reply to Re: computing CRC32 in Perl and C
by roboticus
in thread computing CRC32 in Perl and C
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |