On Sun, Apr 30, 2017 at 1:37 AM, Toby Thain <t...@telegraphics.com.au> wrote:
> Seems you have % instead of & ? And watch out for sign extension on those > literal 0xFFFFFFFF's. You probably want an unsigned and long long suffix on > them. > Nope, both are correct, at least for standard fletcher algorithm. It's always modulo (%) MAXINT-1. And 0xFFFFFFFF's gets properly expanded to unsigned 64 bit, as it should. I double checked using uint64_t variable all the way, and it didn't change the outcome. -- Thomas Tempelmann, http://www.tempel.org/ Follow me on Twitter: https://twitter.com/tempelorg Read my programming blog: http://blog.tempel.org/
_______________________________________________ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (Filesystem-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com